Skip to content

Commit

Permalink
Replace the old RSpec should syntax with the new expect syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-hoose committed Jul 12, 2015
1 parent 28c84d3 commit 53e2b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/helpers/application_helper_spec.rb
Expand Up @@ -10,7 +10,7 @@
allow(helper).to receive(:will_paginate).and_return('content')
collection = double(Forem::Post, num_pages: 10, current_page: 1, total_pages: 3, limit_value: 1)

helper.should_receive(:will_paginate).with(collection, test_option: :test)
expect(helper).to receive(:will_paginate).with(collection, test_option: :test)

helper.forem_pages_widget(collection, test_option: :test)
end
Expand All @@ -21,7 +21,7 @@
allow(helper).to receive(:paginate).and_return('content')
collection = double(Forem::Post, num_pages: 10, current_page: 1, total_pages: 3, limit_value: 1)

helper.should_receive(:paginate).with(collection, test_option: :test)
expect(helper).to receive(:paginate).with(collection, test_option: :test)

helper.forem_pages_widget(collection, test_option: :test)
end
Expand Down

0 comments on commit 53e2b0b

Please sign in to comment.