Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
senekis committed Dec 5, 2016
1 parent 75d3dc6 commit a500607
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions authy-devise-demo/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
PATH
remote: ..
specs:
devise-authy (1.7.0)
devise-authy (1.8.0)
authy
devise
devise (>= 3.0.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -76,7 +76,7 @@ GEM
execjs (2.7.0)
globalid (0.3.7)
activesupport (>= 4.1.0)
httpclient (2.8.2.3)
httpclient (2.8.2.4)
i18n (0.7.0)
jbuilder (2.6.0)
activesupport (>= 3.0.0, < 5.1)
Expand Down Expand Up @@ -191,4 +191,4 @@ DEPENDENCIES
web-console (~> 2.0)

BUNDLED WITH
1.11.2
1.12.5
2 changes: 1 addition & 1 deletion spec/controllers/devise_authy_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
body = JSON.parse(response.body)

expect(body['sent']).to be_truthy
expect(body['message']).to eq("SMS token was sent")
expect(body['message']).to eq("Token was sent.")
end

it "Shoul not send sms if user couldn't be found" do
Expand Down
4 changes: 2 additions & 2 deletions spec/features/authy_authenticatable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

describe "If user has two factor authentication" do
before :each do
@user = create_user(:authy_id => 1)
@user = create_user(:authy_id => 75)
@user.update_attribute(:authy_enabled, true)
end

Expand Down Expand Up @@ -84,7 +84,7 @@
it "Click link Request sms" do
fill_sign_in_form(@user.email, '12345678')
click_link 'Request SMS'
expect(page).to have_content("token was sent")
expect(page).to have_content("Token was sent.")
end
end
end
6 changes: 3 additions & 3 deletions spec/rails-app/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
PATH
remote: ../..
specs:
devise-authy (1.7.0)
devise-authy (1.8.0)
authy
devise
devise (>= 3.0.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -137,4 +137,4 @@ DEPENDENCIES
sqlite3

BUNDLED WITH
1.11.2
1.12.5

0 comments on commit a500607

Please sign in to comment.