pyrite 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/pyrite/assertions.rb +4 -4
  2. metadata +3 -3
@@ -11,15 +11,15 @@ module Pyrite
11
11
  assert !browser.text?(text), msg || "Text '#{text}' not found on page"
12
12
  end
13
13
 
14
- # Assert an element appears on the page via CSS selector
14
+ # Assert an element appears on the page via jquery selector
15
15
  def assert_element(selector, msg=nil)
16
- assert browser.element?("css=#{selector}"),
16
+ assert browser.element?("jquery=#{selector}"),
17
17
  msg || "Element '#{selector}' not found on page"
18
18
  end
19
19
 
20
- # Assert an element does not appear on the page via CSS selector
20
+ # Assert an element does not appear on the page via jquery selector
21
21
  def assert_no_element(selector, msg=nil)
22
- assert !browser.element?("css=#{selector}"),
22
+ assert !browser.element?("jquery=#{selector}"),
23
23
  msg || "Element '#{selector}' was found on page but shouldn't be"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pyrite
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 5
10
- version: 0.6.5
9
+ - 6
10
+ version: 0.6.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Rogers