Skip to content

Commit

Permalink
Introduce new argument, fix some deprecations, update Capybara
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Dec 4, 2014
1 parent 442a4d9 commit 267ea06
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .rspec
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--color --format doc
--color --format doc --require spec_helper
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ GEM
columnize (~> 0.8)
debugger-linecache (~> 1.2)
cancan (1.6.10)
capybara (2.2.1)
capybara (2.4.4)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
Expand Down Expand Up @@ -178,10 +178,10 @@ GEM
treetop (~> 1.4.8)
method_source (0.8.2)
mime-types (1.25.1)
mini_portile (0.5.3)
mini_portile (0.6.1)
multi_json (1.9.2)
nokogiri (1.6.1)
mini_portile (~> 0.5.0)
nokogiri (1.6.5)
mini_portile (~> 0.6.0)
orm_adapter (0.5.0)
paperclip (4.1.1)
activemodel (>= 3.0.0)
Expand Down
12 changes: 5 additions & 7 deletions spec/features/login_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

describe "Login" do
before do
@user = FactoryGirl.create(:user, :password => "mypassword")
Expand All @@ -9,7 +7,7 @@
it "shows the login form when visiting the site", js: true do
visit root_path

page.should have_content("Sign In")
expect(page).to have_content("Sign In")
end

it "allows someone to log in and chat", js: true do
Expand All @@ -19,8 +17,8 @@

click_button "Sign in"

page.should have_content(@user.first_name)
page.should have_content(@user.last_name)
expect(page).to have_content(@user.first_name)
expect(page).to have_content(@user.last_name)

using_wait_time(10) do
expect(page).to have_css('.chat-input')
Expand All @@ -31,14 +29,14 @@
click_button "Post"

within("#channel-activities-1") do
page.should have_content("Hello there")
expect(page).to have_content("Hello there")
end

chat_input.set "Hi again"
click_button "Post"

within("#channel-activities-1") do
page.should have_content("Hi again")
expect(page).to have_content("Hi again")
end
end
end
2 changes: 0 additions & 2 deletions spec/models/activity_observer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

describe ActivityObserver do
skip "add some examples to (or delete) #{__FILE__}"
end
2 changes: 0 additions & 2 deletions spec/models/activity_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Activity do
describe "associations" do
it { should belong_to(:user) }
Expand Down
2 changes: 0 additions & 2 deletions spec/models/channel_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Channel do
describe "associations" do
it { should have_many(:activities) }
Expand Down
1 change: 0 additions & 1 deletion spec/models/user_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'spec_helper'
require 'cancan/matchers'

describe User do
Expand Down

0 comments on commit 267ea06

Please sign in to comment.