cross-stub 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/HISTORY.txt +20 -0
- data/VERSION +1 -1
- data/cross-stub.gemspec +6 -6
- data/lib/cross-stub.rb +1 -0
- data/rails_generators/cross_stub/cross_stub_generator.rb +1 -1
- data/spec/helpers.rb +1 -1
- metadata +6 -6
- data/spec/cross-stub/getting_along_with_mocha_spec.rb +0 -27
data/HISTORY.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
=== 0.1.3 2009-12-17
|
|
2
|
+
|
|
3
|
+
= Bugfixes
|
|
4
|
+
* fixed broken support for stubbing a module's class methods [#liangzan]
|
|
5
|
+
|
|
6
|
+
=== 0.1.2 2009-12-16
|
|
7
|
+
|
|
8
|
+
= Bugfixes
|
|
9
|
+
* fixed failure in stubbing & unstubbing methods not implemented in ruby [#ngty]
|
|
10
|
+
|
|
11
|
+
=== 0.1.1 2009-12-07
|
|
12
|
+
|
|
13
|
+
= Bugfixes
|
|
14
|
+
* fixed rails generator by adding a matching 'After' block for clearing cache
|
|
15
|
+
in current process [#ngty]
|
|
16
|
+
|
|
17
|
+
=== 0.1.0 2009-12-05
|
|
18
|
+
|
|
19
|
+
First gem release! [#ngty]
|
|
20
|
+
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.3
|
data/cross-stub.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{cross-stub}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.3"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["NgTzeYang"]
|
|
12
|
-
s.date = %q{
|
|
12
|
+
s.date = %q{2010-02-04}
|
|
13
13
|
s.description = %q{}
|
|
14
14
|
s.email = %q{ngty77@gmail.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
|
19
19
|
s.files = [
|
|
20
20
|
".document",
|
|
21
21
|
".gitignore",
|
|
22
|
+
"HISTORY.txt",
|
|
22
23
|
"LICENSE",
|
|
23
24
|
"README.rdoc",
|
|
24
25
|
"Rakefile",
|
|
@@ -46,12 +47,11 @@ Gem::Specification.new do |s|
|
|
|
46
47
|
s.rubygems_version = %q{1.3.5}
|
|
47
48
|
s.summary = %q{Simple cross process stubbing}
|
|
48
49
|
s.test_files = [
|
|
49
|
-
"spec/
|
|
50
|
-
"spec/cross-stub/getting_along_with_mocha_spec.rb",
|
|
51
|
-
"spec/cross-stub/clearing_stubs_spec.rb",
|
|
50
|
+
"spec/helpers.rb",
|
|
52
51
|
"spec/cross-stub/stubbing_error_spec.rb",
|
|
52
|
+
"spec/cross-stub/clearing_stubs_spec.rb",
|
|
53
53
|
"spec/cross-stub/creating_stubs_spec.rb",
|
|
54
|
-
"spec/
|
|
54
|
+
"spec/spec_helper.rb"
|
|
55
55
|
]
|
|
56
56
|
|
|
57
57
|
if s.respond_to? :specification_version then
|
data/lib/cross-stub.rb
CHANGED
|
@@ -4,7 +4,7 @@ class CrossStubGenerator < Rails::Generator::Base
|
|
|
4
4
|
record do |m|
|
|
5
5
|
m.file 'config/initializers/cross-stub.rb', 'config/initializers/cross-stub.rb'
|
|
6
6
|
m.file 'features/support/cross-stub.rb', 'features/support/cross-stub.rb'
|
|
7
|
-
m.gsub_file 'config/environments/cucumber.rb', /\z/, "config.gem 'cross-stub', :version => '>=0.1.
|
|
7
|
+
m.gsub_file 'config/environments/cucumber.rb', /\z/, "config.gem 'cross-stub', :version => '>=0.1.3'\n"
|
|
8
8
|
end
|
|
9
9
|
end
|
|
10
10
|
|
data/spec/helpers.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cross-stub
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- NgTzeYang
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date:
|
|
12
|
+
date: 2010-02-04 00:00:00 +08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -64,6 +64,7 @@ extra_rdoc_files:
|
|
|
64
64
|
files:
|
|
65
65
|
- .document
|
|
66
66
|
- .gitignore
|
|
67
|
+
- HISTORY.txt
|
|
67
68
|
- LICENSE
|
|
68
69
|
- README.rdoc
|
|
69
70
|
- Rakefile
|
|
@@ -113,9 +114,8 @@ signing_key:
|
|
|
113
114
|
specification_version: 3
|
|
114
115
|
summary: Simple cross process stubbing
|
|
115
116
|
test_files:
|
|
116
|
-
- spec/
|
|
117
|
-
- spec/cross-stub/getting_along_with_mocha_spec.rb
|
|
118
|
-
- spec/cross-stub/clearing_stubs_spec.rb
|
|
117
|
+
- spec/helpers.rb
|
|
119
118
|
- spec/cross-stub/stubbing_error_spec.rb
|
|
119
|
+
- spec/cross-stub/clearing_stubs_spec.rb
|
|
120
120
|
- spec/cross-stub/creating_stubs_spec.rb
|
|
121
|
-
- spec/
|
|
121
|
+
- spec/spec_helper.rb
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
require File.dirname(__FILE__) + '/../spec_helper.rb'
|
|
2
|
-
|
|
3
|
-
describe 'Getting Along with MOCHA' do
|
|
4
|
-
|
|
5
|
-
behaves_like 'has standard setup'
|
|
6
|
-
|
|
7
|
-
%w{current other}.each do |mode|
|
|
8
|
-
|
|
9
|
-
behaves_like "has #{mode} process setup"
|
|
10
|
-
|
|
11
|
-
it "should work for :stubbing_instance_methods_on_real_objects in #{mode} process" do
|
|
12
|
-
AnyClass.xstub(:something => stub(:to_s => 'hello')) do
|
|
13
|
-
def say_hello ; %\i say #{something}\ ; end
|
|
14
|
-
end
|
|
15
|
-
@get_value['AnyClass.say_hello'].should.equal 'i say hello'
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
# it "should work for :traditional_mocking in #{mode} process" do
|
|
19
|
-
# end
|
|
20
|
-
#
|
|
21
|
-
# it "should work for :shortcuts in #{mode} process" do
|
|
22
|
-
# end
|
|
23
|
-
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
end
|
|
27
|
-
|