fossil 0.5.18 → 0.5.19
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fossil.gemspec +1 -1
- data/spec/helper_methods.rb +0 -28
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.19
|
data/fossil.gemspec
CHANGED
data/spec/helper_methods.rb
CHANGED
@@ -18,34 +18,6 @@ module HelperMethods
|
|
18
18
|
DB_DEMO[:test_table] << hash
|
19
19
|
end
|
20
20
|
|
21
|
-
def get_fos_fixture(file_name)
|
22
|
-
YAML.load_file(File.join(RAILS_ROOT,'spec','fos_fixtures',"#{file_name}.yml"))
|
23
|
-
end
|
24
|
-
|
25
|
-
def get_ipc_fixture(file_name)
|
26
|
-
YAML.load_file(File.join(RAILS_ROOT,'spec','ipc_fixtures',"#{file_name}.yml"))
|
27
|
-
end
|
28
|
-
|
29
|
-
# controller helpers
|
30
|
-
def should_render_json_for(obj,path)
|
31
|
-
mock(obj).to_fos_json(is_a(Hash)) {"json"}
|
32
|
-
call_controller path, :json
|
33
|
-
response.body.should == "json"
|
34
|
-
end
|
35
|
-
|
36
|
-
def should_render_xml_for(obj,path)
|
37
|
-
request.env["HTTP_ACCEPT"] = "application/xml"
|
38
|
-
mock(obj).to_fos_xml(is_a(Hash)) {"xml"}
|
39
|
-
call_controller path, :xml
|
40
|
-
response.body.should == "xml"
|
41
|
-
end
|
42
|
-
|
43
|
-
# def equal_xml(other)
|
44
|
-
# simple_matcher("xml #{other} not equal") do |actual|
|
45
|
-
# actual.gsub(/\s/,'').should == other.gsub(/\s/,'')
|
46
|
-
# end
|
47
|
-
# end
|
48
|
-
#
|
49
21
|
def stub_save_for_model(model)
|
50
22
|
stub.instance_of(model)._refresh(anything) {}
|
51
23
|
stub.instance_of(model)._update(anything) {}
|
data/spec/spec_helper.rb
CHANGED