Permalink
Browse files

Convert specs to the new RSpec expectation syntax

  • Loading branch information...
1 parent 9abe4bd commit 4bf02fe6d0e1e5d306ac8a1d8e6b01ba5b4c9125 @sferik sferik committed Nov 16, 2012
Showing with 7 additions and 5 deletions.
  1. +4 −4 spec/omniauth/strategies/twitter_spec.rb
  2. +3 −1 spec/spec_helper.rb
@@ -5,17 +5,17 @@
OmniAuth::Strategies::Twitter.new({})
end
- context "client options" do
+ context 'client options' do
it 'should have correct name' do
- subject.options.name.should eq("twitter")
+ expect(subject.options.name).to eq('twitter')
end
it 'should have correct site' do
- subject.options.client_options.site.should eq('https://api.twitter.com')
+ expect(subject.options.client_options.site).to eq('https://api.twitter.com')
end
it 'should have correct authorize url' do
- subject.options.client_options.authorize_path.should eq('/oauth/authenticate')
+ expect(subject.options.client_options.authorize_path).to eq('/oauth/authenticate')
end
end
end
View
@@ -12,5 +12,7 @@
config.include WebMock::API
config.include Rack::Test::Methods
config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
+ config.expect_with :rspec do |c|
+ c.syntax = :expect
+ end
end
-

0 comments on commit 4bf02fe

Please sign in to comment.