squash 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ squash-*.gem
2
+ **/.DS_Store
3
+ .rvmrc
data/Gemfile.lock CHANGED
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
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)
4
+ squash (0.0.2)
5
+ akephalos
6
+ cucumber
7
+ rspec
8
+ syntax
9
9
 
10
10
  GEM
11
11
  remote: http://rubygems.org/
@@ -13,6 +13,10 @@ GEM
13
13
  akephalos (0.2.4)
14
14
  capybara (~> 0.3.8)
15
15
  jruby-jars
16
+ aruba (0.2.7)
17
+ background_process
18
+ cucumber (~> 0.10.0)
19
+ background_process (1.2)
16
20
  builder (3.0.0)
17
21
  capybara (0.3.9)
18
22
  culerity (>= 0.2.4)
@@ -66,8 +70,10 @@ PLATFORMS
66
70
  ruby
67
71
 
68
72
  DEPENDENCIES
69
- akephalos (~> 0.2.4)
70
- cucumber (~> 0.10.0)
71
- rspec (~> 2.3.0)
73
+ akephalos
74
+ aruba
75
+ cucumber
76
+ rake
77
+ rspec
72
78
  squash!
73
- syntax (~> 1.0.0)
79
+ syntax
data/README.markdown CHANGED
@@ -8,11 +8,8 @@ A test application framework
8
8
 
9
9
  ## Install
10
10
 
11
- not yet, but eventually:
12
-
13
11
  gem install squash
14
12
 
15
13
  ## Contribute
16
14
 
17
15
  * [http://github.com/nusco/squash](http://github.com/nusco/squash)
18
-
data/Rakefile ADDED
@@ -0,0 +1,17 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+
4
+ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
5
+ require 'squash/version'
6
+
7
+ namespace :gem do
8
+ desc "Build the Squash gem"
9
+ task :build do
10
+ system "gem build squash.gemspec"
11
+ end
12
+
13
+ desc "Install the current project as a gem"
14
+ task :install => :build do
15
+ system "gem install squash-#{Squash::VERSION}.gem"
16
+ end
17
+ end
data/bin/squash ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ template_dir = File.expand_path(File.dirname(__FILE__)) + "/../template"
4
+ puts template_dir
5
+
6
+ if ARGV.size != 1
7
+ puts "Create a new empty application with: squash <application_name>"
8
+ exit
9
+ end
10
+
11
+ app = ARGV[0]
12
+ require 'fileutils'
13
+ FileUtils.mkdir app
14
+ FileUtils.cp_r "#{template_dir}/.", app
15
+ puts "Created Squash application: #{app}"
@@ -0,0 +1,20 @@
1
+ Feature: Generate scaffold application
2
+ As a developer
3
+ I want to generate an empty Squash app
4
+ So that I can get up and running quick
5
+
6
+ Scenario: Generate scaffold application
7
+ Given I'm in an empty directory
8
+ When I run "squash clickmonkey"
9
+ Then the output should contain "Created Squash application: clickmonkey"
10
+ And a file named "clickmonkey/support/paths.rb" should exist
11
+
12
+ Scenario: No command-line argument
13
+ Given I'm in an empty directory
14
+ When I run "squash"
15
+ Then the output should contain "Create a new empty application with: squash <application_name>"
16
+
17
+ Scenario: More than one command-line argument
18
+ Given I'm in an empty directory
19
+ When I run "squash one two"
20
+ Then the output should contain "Create a new empty application with: squash <application_name>"
@@ -0,0 +1,12 @@
1
+ Feature: Run empty scaffold application
2
+ As a developer
3
+ I want to run a smoke-test scenario on an empty Squash app
4
+ So that I can verify that the entire stack works
5
+
6
+ Scenario: Run smoke test
7
+ Given I'm in an empty directory
8
+ When I run "squash clickmonkey"
9
+ And I cd to "clickmonkey"
10
+ And I run "bundle install"
11
+ And I run "cucumber"
12
+ Then the output should contain "1 scenario (1 passed)"
@@ -0,0 +1,4 @@
1
+ Given /^I'm in an empty directory$/ do
2
+ require 'tmpdir'
3
+ Dir.chdir Dir.tmpdir
4
+ end
@@ -1,9 +1,4 @@
1
1
  require 'rubygems'
2
2
  require 'bundler/setup'
3
3
 
4
- require 'akephalos'
5
- Capybara.default_driver = :akephalos
6
-
7
- #After do
8
- # Capybara.reset_sessions!
9
- #end
4
+ require 'aruba/cucumber'
@@ -0,0 +1,5 @@
1
+ module Squash
2
+ unless defined?(Squash::VERSION)
3
+ VERSION = '0.0.2'
4
+ end
5
+ end
data/squash.gemspec ADDED
@@ -0,0 +1,34 @@
1
+ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
2
+ require 'squash/version'
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'squash'
6
+ s.version = Squash::VERSION
7
+ s.authors = ['Paolo "Nusco" Perrotta']
8
+ s.description = 'A test application framework'
9
+ s.summary = "..."
10
+ # s.require_paths = "lib"
11
+ s.email = 'paolo.nusco.perrotta@gmail.com'
12
+ s.homepage = 'https://github.com/nusco/squash'
13
+ s.bindir = 'bin'
14
+ s.platform = Gem::Platform::RUBY
15
+ s.files = `git ls-files`.split("\n")
16
+ s.rubygems_version = "1.3.7"
17
+
18
+ s.add_dependency 'cucumber'
19
+ s.add_dependency 'rspec'
20
+ # s.add_dependency 'capybara' # at the moment, version conflict with the capybara required by akephalos
21
+ s.add_dependency 'akephalos'
22
+ s.add_dependency 'syntax' # Colored sintax in Cucumber's HTML output
23
+
24
+ s.rubyforge_project = "nowarning" # FIXME: any way around this?
25
+
26
+ s.add_development_dependency 'rake'
27
+ s.add_development_dependency 'aruba'
28
+
29
+ # s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
30
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
31
+ s.extra_rdoc_files = ["LICENSE", "README.markdown"]
32
+ # s.rdoc_options = ["--charset=UTF-8"]
33
+ end
34
+
data/template/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source :rubygems
2
+
3
+ gem 'cucumber'
4
+ gem 'rspec'
5
+ # gem 'capybara' # at the moment, version conflict with the capybara required by akephalos
6
+ gem 'akephalos'
7
+ gem 'syntax' # Colored sintax in Cucumber's HTML output
8
+ #gem 'squash'
@@ -0,0 +1,63 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ akephalos (0.2.4)
5
+ capybara (~> 0.3.8)
6
+ jruby-jars
7
+ builder (3.0.0)
8
+ capybara (0.3.9)
9
+ culerity (>= 0.2.4)
10
+ mime-types (>= 1.16)
11
+ nokogiri (>= 1.3.3)
12
+ rack (>= 1.0.0)
13
+ rack-test (>= 0.5.4)
14
+ selenium-webdriver (>= 0.0.3)
15
+ childprocess (0.1.4)
16
+ ffi (~> 0.6.3)
17
+ cucumber (0.10.0)
18
+ builder (>= 2.1.2)
19
+ diff-lcs (~> 1.1.2)
20
+ gherkin (~> 2.3.2)
21
+ json (~> 1.4.6)
22
+ term-ansicolor (~> 1.0.5)
23
+ culerity (0.2.12)
24
+ diff-lcs (1.1.2)
25
+ ffi (0.6.3)
26
+ rake (>= 0.8.7)
27
+ gherkin (2.3.2)
28
+ json (~> 1.4.6)
29
+ term-ansicolor (~> 1.0.5)
30
+ jruby-jars (1.5.6)
31
+ json (1.4.6)
32
+ json_pure (1.4.6)
33
+ mime-types (1.16)
34
+ nokogiri (1.4.4)
35
+ rack (1.2.1)
36
+ rack-test (0.5.6)
37
+ rack (>= 1.0)
38
+ rake (0.8.7)
39
+ rspec (2.3.0)
40
+ rspec-core (~> 2.3.0)
41
+ rspec-expectations (~> 2.3.0)
42
+ rspec-mocks (~> 2.3.0)
43
+ rspec-core (2.3.0)
44
+ rspec-expectations (2.3.0)
45
+ diff-lcs (~> 1.1.2)
46
+ rspec-mocks (2.3.0)
47
+ rubyzip (0.9.4)
48
+ selenium-webdriver (0.1.1)
49
+ childprocess (= 0.1.4)
50
+ ffi (~> 0.6.3)
51
+ json_pure
52
+ rubyzip
53
+ syntax (1.0.0)
54
+ term-ansicolor (1.0.5)
55
+
56
+ PLATFORMS
57
+ ruby
58
+
59
+ DEPENDENCIES
60
+ akephalos
61
+ cucumber
62
+ rspec
63
+ syntax
@@ -0,0 +1 @@
1
+ default: --require step_definitions --require support
@@ -0,0 +1,10 @@
1
+ Feature: This is a smoke test
2
+ As a developer
3
+ I want to see a basic scenario running in a new Squash application
4
+ So that I know that the entire stack is working
5
+
6
+ Scenario: Search on RubyGems
7
+ Given I go to RubyGems.org
8
+ And I fill in "query" with "squash"
9
+ And I press "Search"
10
+ Then I should see "A test application framework"
@@ -0,0 +1,9 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+
4
+ require 'akephalos'
5
+ Capybara.default_driver = :akephalos
6
+
7
+ #After do
8
+ # Capybara.reset_sessions!
9
+ #end
@@ -2,8 +2,8 @@ module NavigationHelpers
2
2
  def path_to(page_name)
3
3
  case page_name
4
4
 
5
- when /the delicious home page/
6
- 'http://www.delicious.com/'
5
+ when /RubyGems.org/
6
+ 'http://www.rubygems.org/'
7
7
 
8
8
  else
9
9
  raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paolo "Nusco" Perrotta
@@ -14,87 +14,117 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-15 00:00:00 +01:00
17
+ date: 2010-12-16 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: cucumber
22
- prerelease: false
23
22
  requirement: &id001 !ruby/object:Gem::Requirement
24
23
  none: false
25
24
  requirements:
26
- - - ~>
25
+ - - ">="
27
26
  - !ruby/object:Gem::Version
28
27
  segments:
29
28
  - 0
30
- - 10
31
- - 0
32
- version: 0.10.0
29
+ version: "0"
33
30
  type: :runtime
31
+ prerelease: false
34
32
  version_requirements: *id001
35
33
  - !ruby/object:Gem::Dependency
36
34
  name: rspec
37
- prerelease: false
38
35
  requirement: &id002 !ruby/object:Gem::Requirement
39
36
  none: false
40
37
  requirements:
41
- - - ~>
38
+ - - ">="
42
39
  - !ruby/object:Gem::Version
43
40
  segments:
44
- - 2
45
- - 3
46
41
  - 0
47
- version: 2.3.0
42
+ version: "0"
48
43
  type: :runtime
44
+ prerelease: false
49
45
  version_requirements: *id002
50
46
  - !ruby/object:Gem::Dependency
51
47
  name: akephalos
52
- prerelease: false
53
48
  requirement: &id003 !ruby/object:Gem::Requirement
54
49
  none: false
55
50
  requirements:
56
- - - ~>
51
+ - - ">="
57
52
  - !ruby/object:Gem::Version
58
53
  segments:
59
54
  - 0
60
- - 2
61
- - 4
62
- version: 0.2.4
55
+ version: "0"
63
56
  type: :runtime
57
+ prerelease: false
64
58
  version_requirements: *id003
65
59
  - !ruby/object:Gem::Dependency
66
60
  name: syntax
67
- prerelease: false
68
61
  requirement: &id004 !ruby/object:Gem::Requirement
69
62
  none: false
70
63
  requirements:
71
- - - ~>
64
+ - - ">="
72
65
  - !ruby/object:Gem::Version
73
66
  segments:
74
- - 1
75
- - 0
76
67
  - 0
77
- version: 1.0.0
68
+ version: "0"
78
69
  type: :runtime
70
+ prerelease: false
79
71
  version_requirements: *id004
72
+ - !ruby/object:Gem::Dependency
73
+ name: rake
74
+ requirement: &id005 !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ segments:
80
+ - 0
81
+ version: "0"
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: *id005
85
+ - !ruby/object:Gem::Dependency
86
+ name: aruba
87
+ requirement: &id006 !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ segments:
93
+ - 0
94
+ version: "0"
95
+ type: :development
96
+ prerelease: false
97
+ version_requirements: *id006
80
98
  description: A test application framework
81
99
  email: paolo.nusco.perrotta@gmail.com
82
- executables: []
83
-
100
+ executables:
101
+ - squash
84
102
  extensions: []
85
103
 
86
104
  extra_rdoc_files:
87
105
  - LICENSE
88
106
  - README.markdown
89
107
  files:
108
+ - .gitignore
90
109
  - Gemfile
91
110
  - Gemfile.lock
92
111
  - LICENSE
93
112
  - README.markdown
94
- - features/smoke_test.feature
95
- - features/step_definitions/web_steps.rb
113
+ - Rakefile
114
+ - bin/squash
115
+ - features/generate_scaffold_application.feature
116
+ - features/run_empty_scaffold_application.feature
117
+ - features/step_definitions/squash_steps.rb
96
118
  - features/support/env.rb
97
- - features/support/paths.rb
119
+ - lib/squash/version.rb
120
+ - squash.gemspec
121
+ - template/Gemfile
122
+ - template/Gemfile.lock
123
+ - template/cucumber.yaml
124
+ - template/features/smoke_test.feature
125
+ - template/step_definitions/web_steps.rb
126
+ - template/support/env.rb
127
+ - template/support/paths.rb
98
128
  has_rdoc: true
99
129
  homepage: https://github.com/nusco/squash
100
130
  licenses: []
@@ -102,12 +132,14 @@ licenses: []
102
132
  post_install_message:
103
133
  rdoc_options: []
104
134
 
105
- require_paths: lib
135
+ require_paths:
136
+ - lib
106
137
  required_ruby_version: !ruby/object:Gem::Requirement
107
138
  none: false
108
139
  requirements:
109
140
  - - ">="
110
141
  - !ruby/object:Gem::Version
142
+ hash: -2093033028883756272
111
143
  segments:
112
144
  - 0
113
145
  version: "0"
@@ -116,12 +148,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
148
  requirements:
117
149
  - - ">="
118
150
  - !ruby/object:Gem::Version
151
+ hash: -2093033028883756272
119
152
  segments:
120
153
  - 0
121
154
  version: "0"
122
155
  requirements: []
123
156
 
124
- rubyforge_project:
157
+ rubyforge_project: nowarning
125
158
  rubygems_version: 1.3.7
126
159
  signing_key:
127
160
  specification_version: 3
@@ -1,10 +0,0 @@
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"