Skip to content

Commit

Permalink
Updated all to newest Rspec syntax and a bundle update
Browse files Browse the repository at this point in the history
  • Loading branch information
Bert Hajee authored and Bert Hajee committed Nov 24, 2013
1 parent 2373adf commit 4b84b4a
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 51 deletions.
95 changes: 49 additions & 46 deletions Gemfile.lock
Expand Up @@ -4,104 +4,105 @@ PATH
page_record (1.0.4)
activemodel
activesupport
capybara (~> 2.1.0)
capybara (> 2.1.0)

GEM
remote: https://rubygems.org/
specs:
actionpack (4.0.0)
activesupport (= 4.0.0)
actionpack (4.0.1)
activesupport (= 4.0.1)
builder (~> 3.1.0)
erubis (~> 2.7.0)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
activemodel (4.0.0)
activesupport (= 4.0.0)
activemodel (4.0.1)
activesupport (= 4.0.1)
builder (~> 3.1.0)
activerecord (4.0.0)
activemodel (= 4.0.0)
activerecord (4.0.1)
activemodel (= 4.0.1)
activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.0)
activesupport (= 4.0.1)
arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.0)
activesupport (4.0.1)
i18n (~> 0.6, >= 0.6.4)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
arel (4.0.0)
arel (4.0.1)
atomic (1.1.14)
builder (3.1.4)
capybara (2.1.0)
capybara (2.2.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
coderay (1.0.9)
celluloid (0.15.2)
timers (~> 1.1.0)
coderay (1.1.0)
coveralls (0.7.0)
multi_json (~> 1.3)
rest-client
simplecov (>= 0.7)
term-ansicolor
thor
diff-lcs (1.2.4)
diff-lcs (1.2.5)
docile (1.1.0)
erubis (2.7.0)
ffi (1.9.0)
ffi (1.9.3)
formatador (0.2.4)
guard (1.8.3)
guard (2.2.4)
formatador (>= 0.2.4)
listen (~> 1.3)
lumberjack (>= 1.0.2)
pry (>= 0.9.10)
thor (>= 0.14.6)
guard-rspec (3.0.3)
guard (>= 1.8)
rspec (~> 2.13)
listen (~> 2.1)
lumberjack (~> 1.0)
pry (>= 0.9.12)
thor (>= 0.18.1)
guard-rspec (4.0.4)
guard (>= 2.1.1)
rspec (~> 2.14)
i18n (0.6.5)
listen (1.3.1)
listen (2.2.0)
celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
rb-kqueue (>= 0.2)
lumberjack (1.0.4)
method_source (0.8.2)
mime-types (1.25)
mini_portile (0.5.1)
mime-types (2.0)
mini_portile (0.5.2)
minitest (4.7.5)
multi_json (1.8.0)
multi_json (1.8.2)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
pry (0.9.12.2)
coderay (~> 1.0.5)
pry (0.9.12.4)
coderay (~> 1.0)
method_source (~> 0.8)
slop (~> 3.4)
rack (1.5.2)
rack-protection (1.5.0)
rack-protection (1.5.1)
rack
rack-test (0.6.2)
rack (>= 1.0)
railties (4.0.0)
actionpack (= 4.0.0)
activesupport (= 4.0.0)
railties (4.0.1)
actionpack (= 4.0.1)
activesupport (= 4.0.1)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.1.0)
rb-fsevent (0.9.3)
rb-inotify (0.9.2)
ffi (>= 0.5.0)
rb-kqueue (0.2.0)
ffi (>= 0.5.0)
rest-client (1.6.7)
mime-types (>= 1.16)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.5)
rspec-expectations (2.14.2)
rspec-core (2.14.7)
rspec-expectations (2.14.4)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.3)
rspec-mocks (2.14.4)
rspec-rails (2.14.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
Expand All @@ -110,23 +111,25 @@ GEM
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
ruby_gntp (0.3.4)
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
sinatra (1.4.3)
simplecov (0.8.2)
docile (~> 1.1.0)
multi_json
simplecov-html (~> 0.8.0)
simplecov-html (0.8.0)
sinatra (1.4.4)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (~> 1.3, >= 1.3.4)
slop (3.4.6)
slop (3.4.7)
term-ansicolor (1.2.2)
tins (~> 0.8)
thor (0.18.1)
thread_safe (0.1.3)
atomic
tilt (1.4.1)
tins (0.9.0)
tzinfo (0.3.37)
timers (1.1.0)
tins (0.13.1)
tzinfo (0.3.38)
xpath (2.0.0)
nokogiri (~> 1.3)

Expand Down
2 changes: 1 addition & 1 deletion page_record.gemspec
Expand Up @@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "ruby_gntp"
# spec.add_development_dependency "debugger"

spec.add_dependency "capybara" , '~>2.1.0'
spec.add_dependency "capybara" , '>2.1.0'
spec.add_dependency "activesupport"
spec.add_dependency "activemodel"
end
8 changes: 4 additions & 4 deletions spec/actions_spec.rb
Expand Up @@ -11,8 +11,8 @@
let(:record) { TeamPage.find(1) }

before do
Capybara::Node::Element.any_instance.
stub(:click). # TODO: Find out why should_receive doesn't work
allow_any_instance_of(Capybara::Node::Element).
to receive(:click). # TODO: Find out why should_receive doesn't work
and_return('OK')
end

Expand All @@ -37,8 +37,8 @@
describe ".<action>" do

before do
Capybara::Node::Element.any_instance.
stub(:click). # TODO: Find out why should_receive doesn't work
allow_any_instance_of(Capybara::Node::Element).
to receive(:click). # TODO: Find out why should_receive doesn't work
and_return('OK')
end

Expand Down

0 comments on commit 4b84b4a

Please sign in to comment.