rspec2-rails-views-matchers 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,12 +4,21 @@ Changelog
4
4
  unreleased(TODO)
5
5
  ----------------
6
6
 
7
+ * improve documentation(look at changelog and code!)
7
8
  * add description
8
9
  * add :without to have\_tag?
9
- * ?make possible constructions like:
10
10
 
11
- rendered.should have(3).tags('div').with(:class => 'some-class').and_content(/some content/)
11
+ 0.2.2
12
+ -----
13
+
14
+ * leading and trailing whitespaces are ignored in tags where they should be ignored(#11, and again thanks to [Simon Schoeters](http://github.com/cimm))
15
+ * whitespaces ignoring as browser does in :text matching
16
+ * have_tag backwards compability(thanks to [Felix Tjandrawibawa](https://github.com/cemenghttps://github.com/cemeng), #12)
17
+
18
+ 0.2.1
19
+ -----
12
20
 
21
+ * make possible use non-string as :text option(#10, thanks for idea to [Simon Schoeters](http://github.com/cimm))
13
22
 
14
23
  0.2.0
15
24
  -----
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
- Test views, be true! :) [![Build Status](http://travis-ci.org/kucaahbe/rspec2-rails-views-matchers.png)](http://travis-ci.org/kucaahbe/rspec2-rails-views-matchers)
1
+ Test views, be true! :) [![Build Status](http://travis-ci.org/kucaahbe/rspec-html-matchers.png)](http://travis-ci.org/kucaahbe/rspec-html-matchers)
2
2
  =======================
3
3
 
4
- [![Mikhalok](https://github.com/kucaahbe/rspec2-rails-views-matchers/raw/master/mikhalok.jpg)](http://www.myspace.com/lyapis "Lyapis Trubetskoy ska-punk band")
4
+ [![Mikhalok](https://github.com/kucaahbe/rspec-html-matchers/raw/master/mikhalok.jpg)](http://www.myspace.com/lyapis "Lyapis Trubetskoy ska-punk band")
5
5
 
6
6
  Why?
7
7
  ===
@@ -53,30 +53,30 @@ Simple example:
53
53
  Also included special matchers for form inputs:
54
54
  -----------------------------------------------
55
55
 
56
- - [have\_form](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:have_form)
57
- - [with\_checkbox](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_checkbox)
58
- - [with\_email\_field](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_email_field)
59
- - [with\_file\_field](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_file_field)
60
- - [with\_hidden\_field](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_hidden_field)
61
- - [with\_option](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_option)
62
- - [with\_password_field](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_password_field)
63
- - [with\_radio\_button](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_radio_button)
64
- - [with\_button](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_button)
65
- - [with\_select](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_select)
66
- - [with\_submit](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_submit)
67
- - [with\_text\_area](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_text_area)
68
- - [with\_text\_field](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_text_field)
69
- - [with\_url\_field](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_url_field)
70
- - [with\_number\_field](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_number_field)
71
- - [with\_range\_field](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_range_field)
72
- - [with\_date\_field](http://rdoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers:with_date_field)
56
+ - [have\_form](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:have_form)
57
+ - [with\_checkbox](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_checkbox)
58
+ - [with\_email\_field](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_email_field)
59
+ - [with\_file\_field](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_file_field)
60
+ - [with\_hidden\_field](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_hidden_field)
61
+ - [with\_option](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_option)
62
+ - [with\_password_field](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_password_field)
63
+ - [with\_radio\_button](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_radio_button)
64
+ - [with\_button](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_button)
65
+ - [with\_select](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_select)
66
+ - [with\_submit](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_submit)
67
+ - [with\_text\_area](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_text_area)
68
+ - [with\_text\_field](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_text_field)
69
+ - [with\_url\_field](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_url_field)
70
+ - [with\_number\_field](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_number_field)
71
+ - [with\_range\_field](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_range_field)
72
+ - [with\_date\_field](http://rdoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers:with_date_field)
73
73
 
74
74
  and of course you can use the `without_` matchers (see the documentation).
75
75
 
76
76
  More info
77
77
  ---------
78
78
 
79
- You can find more on [RubyDoc](http://rubydoc.info/github/kucaahbe/rspec2-rails-views-matchers/master/RSpec/Matchers), take a look at {RSpec::Matchers#have\_tag have\_tag} method.
79
+ You can find more on [RubyDoc](http://rubydoc.info/github/kucaahbe/rspec-html-matchers/master/RSpec/Matchers), take a look at {RSpec::Matchers#have\_tag have\_tag} method.
80
80
 
81
81
  Also, please read {file:CHANGELOG.md CHANGELOG}, it might be helpful.
82
82
 
@@ -94,6 +94,8 @@ Contributors
94
94
  - [Kelly Felkins](http://github.com/kellyfelkins)
95
95
  - [Ryan Wilcox](http://github.com/rwilcox)
96
96
  - [Simon Schoeters](https://github.com/cimm)
97
+ - [Felix Tjandrawibawa](https://github.com/cemenghttps://github.com/cemeng)
98
+ - [Szymon Przybył](https://github.com/apocalyptiq)
97
99
 
98
100
  MIT Licensed
99
101
  ============
@@ -104,4 +106,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
104
106
 
105
107
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
106
108
 
107
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
109
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -4,3 +4,21 @@
4
4
  <p>one</p>
5
5
  <p>two</p>
6
6
  <p>three </p>
7
+ <p>315</p>
8
+ <p>
9
+ content with ignored spaces around
10
+ </p>
11
+ <p>
12
+ content with ignored spaces in
13
+ </p>
14
+ <p>
15
+ content&nbsp;with&nbsp;nbsp
16
+ </p>
17
+ <p>
18
+ content with&nbsp;nbsp &nbsp;and&nbsp; spaces &nbsp; around
19
+ </p>
20
+ <pre> 1. bla
21
+ 2. bla </pre>
22
+ <!--
23
+ vim:list
24
+ -->
@@ -27,6 +27,8 @@ module RSpec
27
27
  MIN_MAX_ERROR_MSG = %Q|:minimum shold be less than :maximum!|
28
28
  BAD_RANGE_ERROR_MSG = %Q|Your :count range(%s) has no sence!|
29
29
 
30
+ PRESERVE_WHITESPACE_TAGS = %w( pre textarea )
31
+
30
32
  def initialize tag, options={}, &block
31
33
  @tag, @options, @block = tag.to_s, options, block
32
34
 
@@ -54,11 +56,11 @@ module RSpec
54
56
  case document
55
57
  when String
56
58
  @parent_scope = @current_scope = Nokogiri::HTML(document).css(@tag)
57
- @document = document
59
+ @document = document
58
60
  else
59
- @parent_scope = document.current_scope
61
+ @parent_scope = document.current_scope
60
62
  @current_scope = document.parent_scope.css(@tag)
61
- @document = @parent_scope.to_html
63
+ @document = @parent_scope.to_html
62
64
  end
63
65
 
64
66
  if tag_presents? and content_right? and count_right?
@@ -78,7 +80,7 @@ module RSpec
78
80
  @negative_failure_message = TAG_FOUND_MSG % [@document, @tag, @count]
79
81
  true
80
82
  else
81
- @failure_message = TAG_NOT_FOUND_MSG % [@document, @tag]
83
+ @failure_message = TAG_NOT_FOUND_MSG % [@document, @tag]
82
84
  false
83
85
  end
84
86
  end
@@ -115,7 +117,7 @@ module RSpec
115
117
  @negative_failure_message = REGEXP_FOUND_MSG % [text.inspect,@tag,@document]
116
118
  true
117
119
  else
118
- @failure_message=REGEXP_NOT_FOUND_MSG % [text.inspect,@tag,@document]
120
+ @failure_message = REGEXP_NOT_FOUND_MSG % [text.inspect,@tag,@document]
119
121
  false
120
122
  end
121
123
  else
@@ -123,7 +125,17 @@ module RSpec
123
125
  new_scope = @current_scope.css(":content('#{css_param}')",Class.new {
124
126
  def content node_set, text
125
127
  match_text = text.gsub(/\\000027/, "'")
126
- node_set.find_all { |node| node.content == match_text }
128
+ node_set.find_all do |node|
129
+ actual_content = if PRESERVE_WHITESPACE_TAGS.include?(node.name)
130
+ node.content
131
+ else
132
+ node.content.strip.squeeze(' ')
133
+ end
134
+ # remove non-braking spaces:
135
+ actual_content.gsub!("\u00a0", ' ')
136
+ actual_content.gsub!("\302\240", ' ')
137
+ actual_content == match_text
138
+ end
127
139
  end
128
140
  }.new)
129
141
  unless new_scope.empty?
@@ -131,7 +143,7 @@ module RSpec
131
143
  @negative_failure_message = TEXT_FOUND_MSG % [text,@tag,@document]
132
144
  true
133
145
  else
134
- @failure_message=TEXT_NOT_FOUND_MSG % [text,@tag,@document]
146
+ @failure_message = TEXT_NOT_FOUND_MSG % [text,@tag,@document]
135
147
  false
136
148
  end
137
149
  end
@@ -205,6 +217,9 @@ module RSpec
205
217
  # '<div class="one two">'.should have_tag('div', :with => { :class => ['two', 'one'] })
206
218
  # '<div class="one two">'.should have_tag('div', :with => { :class => 'two one' })
207
219
  def have_tag tag, options={}, &block
220
+ if options.kind_of? String
221
+ options = { :text => options }
222
+ end
208
223
  @__current_scope_for_nokogiri_matcher = NokogiriMatcher.new(tag, options, &block)
209
224
  end
210
225
 
@@ -3,12 +3,12 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "rspec2-rails-views-matchers"
6
- s.version = '0.2.1'
6
+ s.version = '0.2.2'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["kucaahbe"]
9
9
  s.email = ["kucaahbe@ukr.net"]
10
- s.homepage = "http://github.com/kucaahbe/rspec2-rails-views-matchers"
11
- s.summary = %q{Nokogiri based 'have_tag' and 'with_tag' matchers for rspec 2.x.x}
10
+ s.homepage = "http://github.com/kucaahbe/rspec-html-matchers"
11
+ s.summary = %q{Nokogiri based 'have_tag' and 'with_tag' matchers for rspec 2.x.x (renamed to rspec-html-matchers)}
12
12
  s.description = <<DESC
13
13
  #{s.summary}. Does not depend on assert_select matcher, provides useful error messages.
14
14
  DESC
@@ -0,0 +1,38 @@
1
+ class Asset
2
+ @@assets = {}
3
+
4
+ PATH = File.expand_path(File.join(File.dirname(__FILE__),'..','assets','*.html'))
5
+
6
+ def self.[] name
7
+ @@assets[name.to_s]
8
+ end
9
+
10
+ def self.<< asset
11
+ @@assets.merge! asset.name => asset
12
+ end
13
+
14
+ def self.list
15
+ @@assets.keys
16
+ end
17
+
18
+ attr_reader :name
19
+
20
+ def initialize name, path
21
+ @name = name
22
+ @path = path
23
+ end
24
+
25
+ def content
26
+ @content ||= IO.read(@path)
27
+ puts @content
28
+ return @content
29
+ end
30
+ alias_method :c, :content
31
+ end
32
+
33
+ puts 'assets list:'
34
+ Dir[Asset::PATH].each do |asset_path|
35
+ asset_name = File.basename(asset_path,'.html')
36
+ puts asset_name
37
+ Asset << Asset.new(asset_name,asset_path)
38
+ end
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'bundler/setup'
5
+ require 'nokogiri'
6
+ require File.join(File.dirname(__FILE__),'assets.rb')
7
+ require 'irb'
8
+
9
+ IRB.start
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe 'have_tag' do
4
4
  context "through css selector" do
5
- let(:rendered) { IO.read(File.dirname(__FILE__)+"/../../assets/search_and_submit.html") }
5
+ let(:rendered) { asset('search_and_submit') }
6
6
 
7
7
  it "should find tags" do
8
8
  rendered.should have_tag('div')
@@ -94,7 +94,7 @@ describe 'have_tag' do
94
94
  end
95
95
 
96
96
  context "by count" do
97
- let(:rendered) { IO.read(File.dirname(__FILE__)+"/../../assets/paragraphs.html") }
97
+ let(:rendered) { asset('paragraphs') }
98
98
 
99
99
  it "should find tags" do
100
100
  rendered.should have_tag('p', :count => 3)
@@ -192,7 +192,7 @@ describe 'have_tag' do
192
192
  end
193
193
 
194
194
  context "with content specified" do
195
- let(:rendered) { IO.read(File.dirname(__FILE__)+"/../../assets/quotes.html") }
195
+ let(:rendered) { asset('quotes') }
196
196
 
197
197
  it "should find tags" do
198
198
  rendered.should have_tag('div', :text => 'sample text')
@@ -200,6 +200,16 @@ describe 'have_tag' do
200
200
  rendered.should have_tag('div', :text => /SAMPLE/i)
201
201
  rendered.should have_tag('span', :text => "sample with 'single' quotes")
202
202
  rendered.should have_tag('span', :text => %Q{sample with 'single' and "double" quotes})
203
+
204
+ rendered.should have_tag('p', :text => 'content with ignored spaces around')
205
+ rendered.should have_tag('p', :text => 'content with ignored spaces in')
206
+ rendered.should have_tag('p', :text => 'content with nbsp')
207
+ rendered.should have_tag('p', :text => 'content with nbsp and spaces around')
208
+ rendered.should have_tag('pre', :text => " 1. bla \n 2. bla ")
209
+ end
210
+
211
+ it "should map a string argument to :text => string" do
212
+ rendered.should have_tag('div', 'sample text')
203
213
  end
204
214
 
205
215
  it "should not find tags" do
@@ -207,11 +217,19 @@ describe 'have_tag' do
207
217
  rendered.should_not have_tag('strong', :text => 'text does not present')
208
218
  rendered.should_not have_tag('p', :text => /text does not present/)
209
219
  rendered.should_not have_tag('strong', :text => /text does not present/)
220
+
221
+ rendered.should_not have_tag('p', :text => 'content with ignoredspaces around')
222
+ rendered.should_not have_tag('p', :text => 'content with ignored spaces around')
223
+ rendered.should_not have_tag('p', :text => 'content withignored spaces in')
224
+ rendered.should_not have_tag('p', :text => 'contentwith nbsp')
225
+ rendered.should_not have_tag('p', :text => 'content with nbsp and spaces around')
226
+ rendered.should_not have_tag('pre', :text => "1. bla\n2. bla")
210
227
  end
211
228
 
212
229
  it "should invoke #to_s method for :text" do
213
230
  expect {
214
231
  rendered.should_not have_tag('p', :text => 100500 )
232
+ rendered.should have_tag('p', :text => 315 )
215
233
  }.to_not raise_exception
216
234
  end
217
235
 
@@ -237,7 +255,7 @@ describe 'have_tag' do
237
255
  end
238
256
 
239
257
  context "mixed matching" do
240
- let(:rendered) { IO.read(File.dirname(__FILE__)+"/../../assets/special.html") }
258
+ let(:rendered) { asset('special') }
241
259
 
242
260
  it "should find tags by count and exact content" do
243
261
  rendered.should have_tag("td", :text => 'a', :count => 3)
@@ -278,7 +296,7 @@ describe 'have_tag' do
278
296
  end
279
297
 
280
298
  context "nested matching:" do
281
- let(:rendered) { IO.read(File.dirname(__FILE__)+"/../../assets/ordered_list.html") }
299
+ let(:rendered) { asset('ordered_list') }
282
300
 
283
301
  it "should find tags" do
284
302
  rendered.should have_tag('ol') {
@@ -13,4 +13,5 @@ require 'rspec2-rails-views-matchers'
13
13
  Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}
14
14
 
15
15
  RSpec.configure do |config|
16
+ config.include Helpers
16
17
  end
@@ -0,0 +1,11 @@
1
+ module Helpers
2
+
3
+ def asset name
4
+ IO.read(File.join( File.dirname(__FILE__), '..', '..', 'assets', "#{name}.html" ))
5
+ end
6
+
7
+ def raise_spec_error msg
8
+ raise_error RSpec::Expectations::ExpectationNotMetError, msg
9
+ end
10
+
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec2-rails-views-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-20 00:00:00.000000000 +03:00
12
+ date: 2011-11-14 00:00:00.000000000 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
17
- requirement: &79862560 !ruby/object:Gem::Requirement
17
+ requirement: &68244790 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 2.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *79862560
25
+ version_requirements: *68244790
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: nokogiri
28
- requirement: &79861960 !ruby/object:Gem::Requirement
28
+ requirement: &68251300 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.4.4
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *79861960
36
+ version_requirements: *68251300
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: simplecov
39
- requirement: &79861740 !ruby/object:Gem::Requirement
39
+ requirement: &68648510 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *79861740
47
+ version_requirements: *68648510
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rake
50
- requirement: &79861110 !ruby/object:Gem::Requirement
50
+ requirement: &68650640 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,9 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *79861110
59
- description: ! 'Nokogiri based ''have_tag'' and ''with_tag'' matchers for rspec 2.x.x.
60
- Does not depend on assert_select matcher, provides useful error messages.
58
+ version_requirements: *68650640
59
+ description: ! 'Nokogiri based ''have_tag'' and ''with_tag'' matchers for rspec 2.x.x
60
+ (renamed to rspec-html-matchers). Does not depend on assert_select matcher, provides
61
+ useful error messages.
61
62
 
62
63
  '
63
64
  email:
@@ -83,12 +84,14 @@ files:
83
84
  - lib/rspec2-rails-views-matchers.rb
84
85
  - mikhalok.jpg
85
86
  - rspec2-rails-views-matchers.gemspec
87
+ - script/assets.rb
88
+ - script/console
86
89
  - spec/matchers/form_matchers_spec.rb
87
90
  - spec/matchers/have_tag_spec.rb
88
91
  - spec/spec_helper.rb
89
- - spec/support/spec_error.rb
92
+ - spec/support/helpers.rb
90
93
  has_rdoc: true
91
- homepage: http://github.com/kucaahbe/rspec2-rails-views-matchers
94
+ homepage: http://github.com/kucaahbe/rspec-html-matchers
92
95
  licenses: []
93
96
  post_install_message:
94
97
  rdoc_options: []
@@ -102,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
105
  version: '0'
103
106
  segments:
104
107
  - 0
105
- hash: -719416209
108
+ hash: -724880049
106
109
  required_rubygems_version: !ruby/object:Gem::Requirement
107
110
  none: false
108
111
  requirements:
@@ -111,11 +114,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
114
  version: '0'
112
115
  segments:
113
116
  - 0
114
- hash: -719416209
117
+ hash: -724880049
115
118
  requirements: []
116
119
  rubyforge_project: rspec2-rails-views-matchers
117
120
  rubygems_version: 1.6.2
118
121
  signing_key:
119
122
  specification_version: 3
120
- summary: Nokogiri based 'have_tag' and 'with_tag' matchers for rspec 2.x.x
123
+ summary: Nokogiri based 'have_tag' and 'with_tag' matchers for rspec 2.x.x (renamed
124
+ to rspec-html-matchers)
121
125
  test_files: []
@@ -1,3 +0,0 @@
1
- def raise_spec_error msg
2
- raise_error RSpec::Expectations::ExpectationNotMetError, msg
3
- end