Skip to content

Commit

Permalink
Convert specs to the new RSpec expectation syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Nov 16, 2012
1 parent 9abe4bd commit 4bf02fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions spec/omniauth/strategies/twitter_spec.rb
Expand Up @@ -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
4 changes: 3 additions & 1 deletion spec/spec_helper.rb
Expand Up @@ -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.