lesson_builder_helpers 0.0.6 → 0.0.7
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.
- checksums.yaml +4 -4
- data/lib/lesson_builder_helpers/login.rb +21 -0
- data/lib/lesson_builder_helpers.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc237f619bedf858cc4668d4ca5a1c821b543ac0
|
4
|
+
data.tar.gz: e89f85fd001b849cb8b4bcc545289acf5d11c2b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 242373477fd8d879669e20a2571ac13f6e23f5276deaee3d4461347300bad19c3cba6342d248546419e58f6e7c4b9396194228ea1b4b7486f231a58a592e0534
|
7
|
+
data.tar.gz: 3bacf21f0abf542e339077e1a60812e3da665f9d852947950be986d0147368ca9242d94d2551248da303416e091d5c98616c58c4c3fa8dce6cd9151d72762343
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Login
|
2
|
+
def open_oauth_page
|
3
|
+
on_login_time do
|
4
|
+
find('#get-started-button').click if page.has_css?('#get-started-button')
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
def user_should_be_logged_in
|
9
|
+
find('.nav-links section').click
|
10
|
+
page.should have_css "a[href='/logout']"
|
11
|
+
page.should have_css '.user-name'
|
12
|
+
end
|
13
|
+
|
14
|
+
def user_should_be_logged_out
|
15
|
+
page.should have_css('#landing-wrapper #get-started-button')
|
16
|
+
end
|
17
|
+
|
18
|
+
def application_should_be_ready
|
19
|
+
page.find('body').should_not have_css '.loading'
|
20
|
+
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lesson_builder_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sarah Michaelson
|
@@ -18,6 +18,7 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- lib/lesson_builder_helpers.rb
|
21
|
+
- lib/lesson_builder_helpers/login.rb
|
21
22
|
homepage:
|
22
23
|
licenses: []
|
23
24
|
metadata: {}
|