squash 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.
- data/Gemfile +3 -0
- data/Gemfile.lock +73 -0
- data/LICENSE +22 -0
- data/README.markdown +18 -0
- data/features/smoke_test.feature +10 -0
- data/features/step_definitions/web_steps.rb +47 -0
- data/features/support/env.rb +9 -0
- data/features/support/paths.rb +15 -0
- metadata +130 -0
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
squash (0.0.1)
|
5
|
+
akephalos (~> 0.2.4)
|
6
|
+
cucumber (~> 0.10.0)
|
7
|
+
rspec (~> 2.3.0)
|
8
|
+
syntax (~> 1.0.0)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: http://rubygems.org/
|
12
|
+
specs:
|
13
|
+
akephalos (0.2.4)
|
14
|
+
capybara (~> 0.3.8)
|
15
|
+
jruby-jars
|
16
|
+
builder (3.0.0)
|
17
|
+
capybara (0.3.9)
|
18
|
+
culerity (>= 0.2.4)
|
19
|
+
mime-types (>= 1.16)
|
20
|
+
nokogiri (>= 1.3.3)
|
21
|
+
rack (>= 1.0.0)
|
22
|
+
rack-test (>= 0.5.4)
|
23
|
+
selenium-webdriver (>= 0.0.3)
|
24
|
+
childprocess (0.1.4)
|
25
|
+
ffi (~> 0.6.3)
|
26
|
+
cucumber (0.10.0)
|
27
|
+
builder (>= 2.1.2)
|
28
|
+
diff-lcs (~> 1.1.2)
|
29
|
+
gherkin (~> 2.3.2)
|
30
|
+
json (~> 1.4.6)
|
31
|
+
term-ansicolor (~> 1.0.5)
|
32
|
+
culerity (0.2.12)
|
33
|
+
diff-lcs (1.1.2)
|
34
|
+
ffi (0.6.3)
|
35
|
+
rake (>= 0.8.7)
|
36
|
+
gherkin (2.3.2)
|
37
|
+
json (~> 1.4.6)
|
38
|
+
term-ansicolor (~> 1.0.5)
|
39
|
+
jruby-jars (1.5.6)
|
40
|
+
json (1.4.6)
|
41
|
+
json_pure (1.4.6)
|
42
|
+
mime-types (1.16)
|
43
|
+
nokogiri (1.4.4)
|
44
|
+
rack (1.2.1)
|
45
|
+
rack-test (0.5.6)
|
46
|
+
rack (>= 1.0)
|
47
|
+
rake (0.8.7)
|
48
|
+
rspec (2.3.0)
|
49
|
+
rspec-core (~> 2.3.0)
|
50
|
+
rspec-expectations (~> 2.3.0)
|
51
|
+
rspec-mocks (~> 2.3.0)
|
52
|
+
rspec-core (2.3.0)
|
53
|
+
rspec-expectations (2.3.0)
|
54
|
+
diff-lcs (~> 1.1.2)
|
55
|
+
rspec-mocks (2.3.0)
|
56
|
+
rubyzip (0.9.4)
|
57
|
+
selenium-webdriver (0.1.1)
|
58
|
+
childprocess (= 0.1.4)
|
59
|
+
ffi (~> 0.6.3)
|
60
|
+
json_pure
|
61
|
+
rubyzip
|
62
|
+
syntax (1.0.0)
|
63
|
+
term-ansicolor (1.0.5)
|
64
|
+
|
65
|
+
PLATFORMS
|
66
|
+
ruby
|
67
|
+
|
68
|
+
DEPENDENCIES
|
69
|
+
akephalos (~> 0.2.4)
|
70
|
+
cucumber (~> 0.10.0)
|
71
|
+
rspec (~> 2.3.0)
|
72
|
+
squash!
|
73
|
+
syntax (~> 1.0.0)
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2008,2009 Aslak Hellesøy
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.markdown
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
Feature: This is a smoke test
|
2
|
+
As a DooMonkey developer
|
3
|
+
I want to see a basic DooMonkey scenario running
|
4
|
+
So that I know that the entire stack is working
|
5
|
+
|
6
|
+
Scenario: Search on delicious
|
7
|
+
Given I am on the delicious home page
|
8
|
+
When I fill in "homepage-searchinput" with "ruby"
|
9
|
+
And I press "Search"
|
10
|
+
Then I should see "Programming Ruby"
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))
|
2
|
+
|
3
|
+
Given /^(?:|I )am on (.+)$/ do |page_name|
|
4
|
+
visit path_to(page_name)
|
5
|
+
end
|
6
|
+
|
7
|
+
When /^(?:|I )go to (.+)$/ do |page_name|
|
8
|
+
visit path_to(page_name)
|
9
|
+
end
|
10
|
+
|
11
|
+
When /^(?:|I )fill in "([^\"]*)" with "([^\"]*)"$/ do |field, value|
|
12
|
+
fill_in(field, :with => value)
|
13
|
+
end
|
14
|
+
|
15
|
+
When /^(?:|I )press "([^\"]*)"$/ do |button|
|
16
|
+
click_button(button)
|
17
|
+
end
|
18
|
+
|
19
|
+
When /^(?:|I )follow "([^\"]*)"$/ do |link|
|
20
|
+
click_link(link)
|
21
|
+
end
|
22
|
+
|
23
|
+
Then /^(?:|I )should see "([^\"]*)"$/ do |text|
|
24
|
+
page.should have_content(text)
|
25
|
+
end
|
26
|
+
|
27
|
+
Then /^(?:|I )should not see "([^\"]*)"$/ do |text|
|
28
|
+
page.should_not have_content(text)
|
29
|
+
end
|
30
|
+
|
31
|
+
Then /^(?:|I )should be on (.+)$/ do |page_name|
|
32
|
+
current_path = URI.parse(current_url).select(:path, :query).compact.join('?')
|
33
|
+
path_to(page_name).should =~ /#{current_path}/
|
34
|
+
end
|
35
|
+
|
36
|
+
Then /^(?:|I )should not see spaces around "([^\"]*)"$/ do |text|
|
37
|
+
page.should_not =~ /" #{text}"/
|
38
|
+
page.should_not =~ /"#{text} "/
|
39
|
+
end
|
40
|
+
|
41
|
+
Then /^the "([^\"]*)" field should contain "([^\"]*)"$/ do |field, value|
|
42
|
+
field_labeled(field).value.should =~ /#{value}/
|
43
|
+
end
|
44
|
+
|
45
|
+
Then /^the "([^\"]*)" field should be "([^\"]*)"$/ do |field, value|
|
46
|
+
field_labeled(field).value.should == value
|
47
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module NavigationHelpers
|
2
|
+
def path_to(page_name)
|
3
|
+
case page_name
|
4
|
+
|
5
|
+
when /the delicious home page/
|
6
|
+
'http://www.delicious.com/'
|
7
|
+
|
8
|
+
else
|
9
|
+
raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
|
10
|
+
"Now, go and add a mapping in #{__FILE__}"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
World(NavigationHelpers)
|
metadata
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: squash
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: 0.0.1
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Paolo "Nusco" Perrotta
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-12-15 00:00:00 +01:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: cucumber
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 10
|
31
|
+
- 0
|
32
|
+
version: 0.10.0
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: rspec
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
segments:
|
44
|
+
- 2
|
45
|
+
- 3
|
46
|
+
- 0
|
47
|
+
version: 2.3.0
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: akephalos
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ~>
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
- 2
|
61
|
+
- 4
|
62
|
+
version: 0.2.4
|
63
|
+
type: :runtime
|
64
|
+
version_requirements: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: syntax
|
67
|
+
prerelease: false
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ~>
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
segments:
|
74
|
+
- 1
|
75
|
+
- 0
|
76
|
+
- 0
|
77
|
+
version: 1.0.0
|
78
|
+
type: :runtime
|
79
|
+
version_requirements: *id004
|
80
|
+
description: A test application framework
|
81
|
+
email: paolo.nusco.perrotta@gmail.com
|
82
|
+
executables: []
|
83
|
+
|
84
|
+
extensions: []
|
85
|
+
|
86
|
+
extra_rdoc_files:
|
87
|
+
- LICENSE
|
88
|
+
- README.markdown
|
89
|
+
files:
|
90
|
+
- Gemfile
|
91
|
+
- Gemfile.lock
|
92
|
+
- LICENSE
|
93
|
+
- README.markdown
|
94
|
+
- features/smoke_test.feature
|
95
|
+
- features/step_definitions/web_steps.rb
|
96
|
+
- features/support/env.rb
|
97
|
+
- features/support/paths.rb
|
98
|
+
has_rdoc: true
|
99
|
+
homepage: https://github.com/nusco/squash
|
100
|
+
licenses: []
|
101
|
+
|
102
|
+
post_install_message:
|
103
|
+
rdoc_options: []
|
104
|
+
|
105
|
+
require_paths: lib
|
106
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
segments:
|
112
|
+
- 0
|
113
|
+
version: "0"
|
114
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
segments:
|
120
|
+
- 0
|
121
|
+
version: "0"
|
122
|
+
requirements: []
|
123
|
+
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 1.3.7
|
126
|
+
signing_key:
|
127
|
+
specification_version: 3
|
128
|
+
summary: ...
|
129
|
+
test_files: []
|
130
|
+
|