File tree Expand file tree Collapse file tree 4 files changed +16
-0
lines changed
Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ source 'https://rubygems.org'
22
33group :development do
44 gem 'rspec' , '~> 3.1.0'
5+ gem 'rspec-power_assert'
56
67 gem 'guard-rspec' , "~> 4.3.1"
78
Original file line number Diff line number Diff line change 2626 rb-inotify (>= 0.9 )
2727 lumberjack (1.0.9 )
2828 method_source (0.8.2 )
29+ power_assert (0.2.1 )
2930 pry (0.10.1 )
3031 coderay (~> 1.1.0 )
3132 method_source (~> 0.8.1 )
4546 rspec-support (~> 3.1.0 )
4647 rspec-mocks (3.1.3 )
4748 rspec-support (~> 3.1.0 )
49+ rspec-power_assert (0.2.0 )
50+ power_assert (~> 0.2.0 )
51+ rspec (>= 2.14 )
4852 rspec-support (3.1.2 )
4953 slop (3.6.0 )
5054 thor (0.19.1 )
@@ -60,3 +64,4 @@ DEPENDENCIES
6064 libnotify
6165 rb-notifu
6266 rspec (~> 3.1.0 )
67+ rspec-power_assert
Original file line number Diff line number Diff line change 1818 let ( :greeting ) { "Yeah!" }
1919 it { should eq "Yeah! TDD BootCamp!" }
2020 end
21+
22+ describe "Using power assert " do
23+ let ( :greeting ) { "Wow!" }
24+
25+ it do
26+ is_asserted_by { sample . say ( greeting ) == "Wow! TDD BootCamp!" }
27+ end
28+ end
2129 end
2230end
Original file line number Diff line number Diff line change 2020root_dir = File . expand_path ( File . dirname ( __FILE__ ) + "/.." )
2121Dir [ "#{ root_dir } /lib/**/*.rb" ] . each { |f | require f }
2222
23+ require "rspec-power_assert"
24+
2325RSpec . configure do |config |
2426 # rspec-expectations config goes here. You can use an alternate
2527 # assertion/expectation library such as wrong or the stdlib/minitest
You can’t perform that action at this time.
0 commit comments