spec/integration/controller_helpers_spec.rb in warden-github-rails-1.0.1 vs spec/integration/controller_helpers_spec.rb in warden-github-rails-1.1.0
- old
+ new
@@ -1,11 +1,11 @@
require 'spec_helper'
describe 'controller helpers' do
{
- :scoped => :admin,
- :unscoped => Warden::GitHub::Rails.default_scope
+ scoped: :admin,
+ unscoped: Warden::GitHub::Rails.default_scope
}.each do |type, scope|
context "when using #{type}" do
describe '#github_authenticate!' do
subject(:request) { get "/#{type}/authenticate" }
@@ -84,10 +84,10 @@
end
context 'when logged in' do
it "returns the user's session" do
github_login(scope)
- expect(request.body).to eq({ :foo => :bar }.to_s)
+ expect(request.body).to eq({ foo: :bar }.to_s)
end
end
end
end
end