rspec_more 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
+ v0.3 take subject as the object if there is one
1
2
  v0.2 a brutal support for active record
2
3
  v0.1.1 Added homepage
3
4
  v0.1 initial setup
data/Gemfile CHANGED
@@ -2,5 +2,5 @@ source 'http://rubygems.org'
2
2
  gem 'rspec'
3
3
  group 'dev' do
4
4
  gem "rake"
5
- gem "echoe"
5
+ gem "echoe", "4.5.2"
6
6
  end
data/Gemfile.lock CHANGED
@@ -3,12 +3,12 @@ GEM
3
3
  specs:
4
4
  allison (2.0.3)
5
5
  diff-lcs (1.1.2)
6
- echoe (4.5.5)
6
+ echoe (4.5.2)
7
7
  allison
8
8
  gemcutter
9
9
  rubyforge
10
10
  gemcutter (0.7.0)
11
- json_pure (1.5.1)
11
+ json_pure (1.5.3)
12
12
  rake (0.8.7)
13
13
  rspec (2.5.0)
14
14
  rspec-core (~> 2.5.0)
@@ -25,6 +25,6 @@ PLATFORMS
25
25
  ruby
26
26
 
27
27
  DEPENDENCIES
28
- echoe
28
+ echoe (= 4.5.2)
29
29
  rake
30
30
  rspec
data/Manifest CHANGED
@@ -7,4 +7,3 @@ Rakefile
7
7
  lib/rspec_more.rb
8
8
  lib/rspec_more/active_record.rb
9
9
  lib/rspec_more/data_mapper.rb
10
- rspec_more.gemspec
@@ -3,7 +3,7 @@ module RspecMore
3
3
  def require_attribute(field)
4
4
  it "require #{field.inspect}" do
5
5
  object_name = self.described_class.to_s.demodulize.underscore
6
- object = send(object_name)
6
+ object = subject || send(object_name)
7
7
  object.send("#{field}=", nil)
8
8
  object.should_not be_valid
9
9
  object.errors.should have_key(field.to_sym)
data/rspec_more.gemspec CHANGED
@@ -2,20 +2,20 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rspec_more}
5
- s.version = "0.2"
5
+ s.version = "0.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Yi Wen"]
9
- s.date = %q{2011-05-24}
8
+ s.authors = [%q{Yi Wen}]
9
+ s.date = %q{2011-06-22}
10
10
  s.description = %q{A Rspec extension for more macros and matchers, etc.}
11
11
  s.email = %q{hayafirst@gmail.com}
12
- s.extra_rdoc_files = ["CHANGELOG", "README.md", "lib/rspec_more.rb", "lib/rspec_more/active_record.rb", "lib/rspec_more/data_mapper.rb"]
13
- s.files = ["CHANGELOG", "Gemfile", "Gemfile.lock", "Manifest", "README.md", "Rakefile", "lib/rspec_more.rb", "lib/rspec_more/active_record.rb", "lib/rspec_more/data_mapper.rb", "rspec_more.gemspec"]
12
+ s.extra_rdoc_files = [%q{CHANGELOG}, %q{README.md}, %q{lib/rspec_more.rb}, %q{lib/rspec_more/active_record.rb}, %q{lib/rspec_more/data_mapper.rb}]
13
+ s.files = [%q{CHANGELOG}, %q{Gemfile}, %q{Gemfile.lock}, %q{Manifest}, %q{README.md}, %q{Rakefile}, %q{lib/rspec_more.rb}, %q{lib/rspec_more/active_record.rb}, %q{lib/rspec_more/data_mapper.rb}, %q{rspec_more.gemspec}]
14
14
  s.homepage = %q{https://github.com/ywen/rspec_more}
15
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Rspec_more", "--main", "README.md"]
16
- s.require_paths = ["lib"]
15
+ s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Rspec_more}, %q{--main}, %q{README.md}]
16
+ s.require_paths = [%q{lib}]
17
17
  s.rubyforge_project = %q{rspec_more}
18
- s.rubygems_version = %q{1.7.2}
18
+ s.rubygems_version = %q{1.8.5}
19
19
  s.summary = %q{A Rspec extension for more macros and matchers, etc.}
20
20
 
21
21
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,31 +1,27 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rspec_more
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.3'
4
5
  prerelease:
5
- version: "0.2"
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Yi Wen
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-05-24 00:00:00 Z
12
+ date: 2011-06-22 00:00:00.000000000Z
14
13
  dependencies: []
15
-
16
14
  description: A Rspec extension for more macros and matchers, etc.
17
15
  email: hayafirst@gmail.com
18
16
  executables: []
19
-
20
17
  extensions: []
21
-
22
- extra_rdoc_files:
18
+ extra_rdoc_files:
23
19
  - CHANGELOG
24
20
  - README.md
25
21
  - lib/rspec_more.rb
26
22
  - lib/rspec_more/active_record.rb
27
23
  - lib/rspec_more/data_mapper.rb
28
- files:
24
+ files:
29
25
  - CHANGELOG
30
26
  - Gemfile
31
27
  - Gemfile.lock
@@ -38,35 +34,32 @@ files:
38
34
  - rspec_more.gemspec
39
35
  homepage: https://github.com/ywen/rspec_more
40
36
  licenses: []
41
-
42
37
  post_install_message:
43
- rdoc_options:
38
+ rdoc_options:
44
39
  - --line-numbers
45
40
  - --inline-source
46
41
  - --title
47
42
  - Rspec_more
48
43
  - --main
49
44
  - README.md
50
- require_paths:
45
+ require_paths:
51
46
  - lib
52
- required_ruby_version: !ruby/object:Gem::Requirement
47
+ required_ruby_version: !ruby/object:Gem::Requirement
53
48
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: "0"
58
- required_rubygems_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ! '>='
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
54
  none: false
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: "1.2"
55
+ requirements:
56
+ - - ! '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '1.2'
64
59
  requirements: []
65
-
66
60
  rubyforge_project: rspec_more
67
- rubygems_version: 1.7.2
61
+ rubygems_version: 1.8.5
68
62
  signing_key:
69
63
  specification_version: 3
70
64
  summary: A Rspec extension for more macros and matchers, etc.
71
65
  test_files: []
72
-