lesson_builder_helpers 0.0.1
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 +7 -0
- data/lib/lesson_builder_helpers.rb +27 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: df3e5efdb9af48bfd483307cda9e7667937b3eaa
|
4
|
+
data.tar.gz: d076eb6255ca62e794716e5c7ab1992ea0c3db20
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ef0b10be1bf9609bccb8ab4564c5854fd74739d247ba67418fce0b8515155d8fcb62f9e055804f62a9d3005e9cdd97676a3b40bbf5f4b65d65abe56772a3580d
|
7
|
+
data.tar.gz: 473e81a4c2ba3419b9ef0c29a7ed0041e8d0db7058a7f01f9ec415fb321995661fe3db5988814ea0264545256f5280e8d1cceb067f5ed42b3d98d6141357759a
|
@@ -0,0 +1,27 @@
|
|
1
|
+
class LessonBuilderHelpers
|
2
|
+
def self.hi
|
3
|
+
puts "Hello world!"
|
4
|
+
end
|
5
|
+
end
|
6
|
+
|
7
|
+
class LessonBuilderHelpers::Support::Login
|
8
|
+
def open_oauth_page
|
9
|
+
on_login_time do
|
10
|
+
find('#get-started-button').click if page.has_css?('#get-started-button')
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def user_should_be_logged_in
|
15
|
+
find('.nav-links section').click
|
16
|
+
page.should have_css "a[href='/logout']"
|
17
|
+
page.should have_css '.user-name'
|
18
|
+
end
|
19
|
+
|
20
|
+
def user_should_be_logged_out
|
21
|
+
page.should have_css('#landing-wrapper #get-started-button')
|
22
|
+
end
|
23
|
+
|
24
|
+
def application_should_be_ready
|
25
|
+
page.find('body').should_not have_css '.loading'
|
26
|
+
end
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lesson_builder_helpers
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sarah Michaelson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-01-07 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Helper methods for Amplify Lesson Builder, to be used in the Amplify
|
14
|
+
Cucumber suite
|
15
|
+
email: sarah.michaelson@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/lesson_builder_helpers.rb
|
21
|
+
homepage:
|
22
|
+
licenses: []
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.2.2
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: Amplify Lesson Builder helpers
|
44
|
+
test_files: []
|