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 CHANGED
@@ -1 +1 @@
1
- 0.5.18
1
+ 0.5.19
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fossil}
8
- s.version = "0.5.18"
8
+ s.version = "0.5.19"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Patrick Lardin, Daniel Sudol"]
@@ -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) {}
@@ -1,5 +1,5 @@
1
1
  require_relative '../lib/fossil'
2
- #gem "rspec", '1.3.0'
2
+
3
3
  require 'rspec'
4
4
  require 'rr'
5
5
  require 'logger'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 18
9
- version: 0.5.18
8
+ - 19
9
+ version: 0.5.19
10
10
  platform: ruby
11
11
  authors:
12
12
  - Patrick Lardin, Daniel Sudol