code-spec 0.2.0 → 0.2.1

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/code-spec.gemspec +2 -2
  3. data/lib/code-spec.rb +1 -24
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/code-spec.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{code-spec}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
12
- s.date = %q{2010-08-18}
12
+ s.date = %q{2010-08-19}
13
13
  s.description = %q{Code file RSpec 2 matchers that make it easy to spec Ruby code files, fx updated or generated by a Thor generator}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
data/lib/code-spec.rb CHANGED
@@ -13,31 +13,8 @@ require_all File.dirname(__FILE__) + '/code_spec/matchers'
13
13
  require 'code_spec/content_helpers'
14
14
  require 'code_spec/core_ext'
15
15
 
16
- module FormHelperMacro
17
- def with_form_helper name
18
- class_eval do
19
- include get_form_matcher(name)
20
- end
21
- end
22
-
23
- protected
24
-
25
- def get_form_matcher name
26
- case name
27
- when :formtastic
28
- Erb::Formtastic::ContentMatchers
29
- when :simpleform
30
- Erb::SimpleForm::ContentMatchers
31
- else
32
- Erb::RailsForm::ContentMatchers
33
- end
34
- end
35
- end
36
-
37
-
38
16
  RSpec.configure do |config|
39
- config.include RSpec::RubyContentMatchers
40
- config.extend(FormHelperMacro)
17
+ config.include RSpec::RubyContentMatchers
41
18
  end
42
19
 
43
20
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kristian Mandrup
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-08-18 00:00:00 +02:00
17
+ date: 2010-08-19 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency