page-right 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/page-right.rb +21 -0
- metadata +45 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f851770d890cf18daba5bec2800bc3f698de031a
|
4
|
+
data.tar.gz: 13c7acb8899c5f8f95b6c02d8990e324b7f99632
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 98b26669a83a1e69a47f5976167b759bc4ccead57bd80f099175f9661cfc59adb7dd6807219e4ffbf9ee7ef0b275fc3f3fe4075861e7b272e91deee0882bb907
|
7
|
+
data.tar.gz: b7ec4b091144bfbbce0f408324dc3f0e83fb360fbe7e8b3e7da4ac958fdfbcf9b2c8e3f2ef6ff941cc730c1474f93edb721c4161a4c240ff3c6235b52a84812c
|
data/lib/page-right.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
class ActiveSupport::TestCase
|
2
|
+
|
3
|
+
def check_text_is_on_page(content, flag=true)
|
4
|
+
if flag
|
5
|
+
assert page.has_content?("#{content}"), "#{content} is missing from page !"
|
6
|
+
else
|
7
|
+
assert !page.has_content?("#{content}"), "#{content} is missing from page !"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def check_text_is_in_section(section, content, flag=true)
|
12
|
+
within("#{section}") do
|
13
|
+
if flag
|
14
|
+
assert page.has_content?("#{content}"), "#{content} is missing from #{section} !"
|
15
|
+
else
|
16
|
+
assert !page.has_content?("#{content}"), "#{content} is missing from #{section} !"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: page-right
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dave Collier
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-08-17 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A simple gem that sits up on Capybara to provide a number of methods
|
14
|
+
to test the contents of your page
|
15
|
+
email: lardelbow@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/page-right.rb
|
21
|
+
homepage: https://github.com/lardelbow/page-right
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata: {}
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- lib
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
requirements: []
|
40
|
+
rubyforge_project:
|
41
|
+
rubygems_version: 2.2.2
|
42
|
+
signing_key:
|
43
|
+
specification_version: 4
|
44
|
+
summary: A simple gem that helps you with testing
|
45
|
+
test_files: []
|