Commit 788e739 Mark Evans
committed
1 parent bf74075 commit 788e739 Copy full SHA for 788e739
File tree 4 files changed +10
-4
lines changed
4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 9
9
let! :dragonfly_app do test_app ( :test_ar ) end
10
10
11
11
before :all do
12
- @connection = ActiveRecord ::Base . establish_connection ( :adapter => "sqlite3" , :database => ":memory:" )
12
+ ActiveRecord ::Base . establish_connection ( :adapter => "sqlite3" , :database => ":memory:" )
13
13
14
14
ActiveRecord ::Migration . verbose = false
15
15
@@ -27,7 +27,7 @@ class Photo < ActiveRecord::Base
27
27
28
28
after :all do
29
29
Photo . destroy_all
30
- ActiveRecord ::Base . remove_connection ( @connection )
30
+ ActiveRecord ::Base . remove_connection ( )
31
31
end
32
32
33
33
describe "destroying" do
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ def get_parts(temp_object)
145
145
end
146
146
it "should allow not creating intermediate subdirs" do
147
147
filename = 'tmp/gog/mcgee'
148
- expect { @temp_object . to_file ( filename , :mkdirs => false ) } . to raise_error ( )
148
+ expect { @temp_object . to_file ( filename , :mkdirs => false ) } . to raise_error ( /No such file or directory/ )
149
149
end
150
150
end
151
151
Original file line number Diff line number Diff line change 17
17
SAMPLES_DIR = Pathname . new ( File . expand_path ( "../../samples" , __FILE__ ) )
18
18
19
19
RSpec . configure do |c |
20
+ c . expect_with ( :rspec ) do |expectations |
21
+ expectations . syntax = [ :should , :expect ]
22
+ end
23
+ c . mock_with ( :rspec ) do |mocks |
24
+ mocks . syntax = [ :should , :expect ]
25
+ end
20
26
c . include ModelHelpers
21
27
c . include RackHelpers
22
28
end
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def image_properties(image)
22
22
match do |actual |
23
23
value . should === image_properties ( actual ) [ property ]
24
24
end
25
- failure_message_for_should do |actual |
25
+ failure_message do |actual |
26
26
"expected image to have #{ property } #{ value . inspect } , but it had #{ image_properties ( actual ) [ property ] . inspect } "
27
27
end
28
28
end
You can’t perform that action at this time.
0 commit comments