wally 0.0.41 → 0.0.42

Sign up to get free protection for your applications and to get access to all the features.
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 1.9.2-p320
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ rvm:
2
+ - 1.8.7
3
+ - 1.9.2
4
+ - 1.9.3
5
+ - rbx-18mode
6
+ - rbx-19mode
7
+ script: bundle exec rspec spec
data/README.md CHANGED
@@ -20,14 +20,14 @@ Many of the ideas have been borrowed from Matt Wynne's Relish product, but we;
20
20
 
21
21
  ### Installation
22
22
  * Install [mongodb](http://www.mongodb.org/display/DOCS/Quickstart "mongodb") and ensure it is running (e.g. '~ $ ./mongodb-xxxxx-xxxx-x.x.x/bin/mongod')
23
- * gem install wally
24
- * you might also want mongo_mapper (gem install mongo_mapper)
23
+ * `gem install wally`
24
+ * you might also want mongo_mapper (`gem install mongo_mapper`)
25
25
 
26
26
  ### Usage
27
- * create a '.wally' file and enter any authentication text you like (echo myPassword > .wally)
28
- * run wally server (in the same dir that you put the .wally file)
29
- * check http://localhost:4567/
30
- * import your features (from local dir) wally push http://localhost:4567/projects/project-name feature-dir
27
+ * create a '.wally' file and enter any authentication text you like (`echo myPassword > .wally`)
28
+ * run wally server, in the same dir that you put the .wally file (`wally server`)
29
+ * check [http://localhost:4567/](http://localhost:4567/)
30
+ * import your features (from local dir) `wally push http://localhost:4567/projects/<project-name> <feature-dir>`
31
31
 
32
32
 
33
33
  ## Wally?
@@ -10,3 +10,10 @@ Feature: Projects
10
10
  """
11
11
  And I visit the project page for "project_name"
12
12
  Then I see a link to the feature "Projects"
13
+
14
+ @javascript
15
+ Scenario: Switch between projects
16
+ Given 2 projects exist
17
+ When I view the welcome page
18
+ Then I can switch to the 2nd project
19
+ And I can switch to the 1st project
@@ -6,6 +6,22 @@ Given /^I visit the project page for "([^"]*)"$/ do |project|
6
6
  visit "/projects/#{project}"
7
7
  end
8
8
 
9
+ Given /^(\d+) projects exist$/ do |number_of_projects|
10
+ number_of_projects.to_i.times do |project_number|
11
+ project(project_number + 1)
12
+ end
13
+ end
14
+
9
15
  Then /^I see a link to the feature "([^"]*)"$/ do |feature|
10
16
  page.should have_link feature
11
17
  end
18
+
19
+ Then /^I can switch to the (\d).+ project$/ do |project_number|
20
+ select project_number, :from => 'projects'
21
+
22
+ #This is needed because there seems to be a bug in the chrome driver.
23
+ #The first time this is called, we get the old url, and the second time we get the new url.
24
+ page.current_url
25
+
26
+ page.current_url.end_with?(project_number).should be_true
27
+ end
@@ -14,7 +14,6 @@ When /^I select the project "([^"]*)"$/ do |project|
14
14
  select(project, :from => "projects")
15
15
  end
16
16
 
17
- Then /^"([^"]*)" is rendered$/ do |text|
18
- page.should have_content text
17
+ Then /^I see the wally README$/ do
18
+ page.should have_content "Wally is a web-based Cucumber viewer and navigator"
19
19
  end
20
-
@@ -5,7 +5,7 @@ Feature: Welcome Page
5
5
  Scenario: No projects
6
6
  Given there aren't any projects
7
7
  When I view the welcome page
8
- Then "Wally is a web-based Cucumber viewer and navigator" is rendered
8
+ Then I see the wally README
9
9
 
10
10
  @javascript
11
11
  Scenario: Project links on home page
@@ -202,7 +202,7 @@ section.feature p:first-child {
202
202
  }
203
203
 
204
204
  .tag-wip {
205
- background: #666FF;
205
+ background: #66f;
206
206
  color: #fff;
207
207
  }
208
208
 
data/lib/wally/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wally
2
- VERSION = "0.0.41"
2
+ VERSION = "0.0.42"
3
3
  end
@@ -17,7 +17,7 @@
17
17
  %div.project-list
18
18
  %select#projects{:name => "projects"}
19
19
  - Wally::Project.all.each do |project|
20
- %option{:value => project.name}
20
+ %option{ :value => project.name, :selected => project == current_project }
21
21
  = project.name
22
22
 
23
23
  %div.search-bar
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wally
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.41
4
+ version: 0.0.42
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-30 00:00:00.000000000 Z
12
+ date: 2012-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -244,7 +244,9 @@ extensions: []
244
244
  extra_rdoc_files: []
245
245
  files:
246
246
  - .gitignore
247
+ - .ruby-version
247
248
  - .rvmrc
249
+ - .travis.yml
248
250
  - Gemfile
249
251
  - LICENSE
250
252
  - README.md
@@ -327,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
327
329
  version: '0'
328
330
  requirements: []
329
331
  rubyforge_project: wally
330
- rubygems_version: 1.8.21
332
+ rubygems_version: 1.8.23
331
333
  signing_key:
332
334
  specification_version: 3
333
335
  summary: ''