Skip to content

Commit

Permalink
Address RSpec/ExpectInLet
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbrodie committed Aug 10, 2024
1 parent 1120994 commit f85e6c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions spec/jira/resource/board_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ class JIRAResourceDelegation < SimpleDelegator # :nodoc:
\"type\": \"scrum\"
}"
allow(response).to receive(:body).and_return(api_json_board)
expect(client).to receive(:get).with('/rest/agile/1.0/board/84')
.and_return(response)
allow(client).to receive(:get).with('/rest/agile/1.0/board/84')
.and_return(response)

expect(client).to receive(:Board).and_return(JIRA::Resource::BoardFactory.new(client))
allow(client).to receive(:Board).and_return(JIRA::Resource::BoardFactory.new(client))
described_class.find(client, '84')
end

Expand Down
2 changes: 1 addition & 1 deletion spec/jira/resource/filter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
response
end
let(:filter) do
expect(client).to receive(:get).with("#{collection_path}/42").and_return(filter_response)
allow(client).to receive(:get).with("#{collection_path}/42").and_return(filter_response)
allow(described_class).to receive(:collection_path).and_return(collection_path)
described_class.find(client, 42)
end
Expand Down

0 comments on commit f85e6c3

Please sign in to comment.