rspec-html-matchers 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  rvm:
2
2
  - 1.8.7
3
3
  - 1.9.2
4
+ - 1.9.3
4
5
  - ree
data/assets/quotes.html CHANGED
@@ -19,6 +19,8 @@
19
19
  </p>
20
20
  <pre> 1. bla
21
21
  2. bla </pre>
22
+
23
+ <a href="#">học</a>
22
24
  <!--
23
25
  vim:list
24
26
  -->
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require 'nokogiri'
2
3
 
3
4
  module RSpec
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "rspec-html-matchers"
6
- s.version = '0.2.2'
6
+ s.version = '0.2.3'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["kucaahbe"]
9
9
  s.email = ["kucaahbe@ukr.net"]
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe 'have_tag' do
@@ -212,6 +213,11 @@ describe 'have_tag' do
212
213
  rendered.should have_tag('div', 'sample text')
213
214
  end
214
215
 
216
+ it "should find with unicode text specified" do
217
+ expect { rendered.should have_tag('a', :text => "học") }.to_not raise_exception(Encoding::CompatibilityError) if RUBY_VERSION =~ /^1\.9/
218
+ rendered.should have_tag('a', :text => "học")
219
+ end
220
+
215
221
  it "should not find tags" do
216
222
  rendered.should_not have_tag('p', :text => 'text does not present')
217
223
  rendered.should_not have_tag('strong', :text => 'text does not present')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-html-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
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-11-14 00:00:00.000000000 +02:00
12
+ date: 2011-12-26 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: &76623160 !ruby/object:Gem::Requirement
17
+ requirement: &82198260 !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: *76623160
25
+ version_requirements: *82198260
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: nokogiri
28
- requirement: &76635480 !ruby/object:Gem::Requirement
28
+ requirement: &82197080 !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: *76635480
36
+ version_requirements: *82197080
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: simplecov
39
- requirement: &76640040 !ruby/object:Gem::Requirement
39
+ requirement: &82195890 !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: *76640040
47
+ version_requirements: *82195890
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rake
50
- requirement: &77039050 !ruby/object:Gem::Requirement
50
+ requirement: &82194340 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *77039050
58
+ version_requirements: *82194340
59
59
  description: ! 'Nokogiri based ''have_tag'' and ''with_tag'' matchers for rspec 2.x.x.
60
60
  Does not depend on assert_select matcher, provides useful error messages.
61
61
 
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  segments:
106
106
  - 0
107
- hash: 500062493
107
+ hash: 982466547
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  none: false
110
110
  requirements:
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  segments:
115
115
  - 0
116
- hash: 500062493
116
+ hash: 982466547
117
117
  requirements: []
118
118
  rubyforge_project: rspec-html-matchers
119
119
  rubygems_version: 1.6.2