Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'add_features'

Conflicts:
	features/push.feature
  • Loading branch information...
commit 0d8dcbfa0d1b650eaeebbff17c466a63ebb64211 2 parents 43d9403 + 620dd77
@mattwynne mattwynne authored
View
13 features/push.feature
@@ -1,8 +1,9 @@
+@announce
Feature: Push
- As a Relish user
- In order to push my features to the Relish server
- I want to run the relish push command
+ In order to send my features to relishapp.com
+ As a Relish user dev
+ I want a push command
- Scenario: Push one feature file to a project
- Given pending
-
+ Scenario: Specify everything at the command-line
+ When I run "relish push --host localhost:80 --project rspec-core --user rspec"
+ When it should POST to "http://localhost:80/rspec/rspec-core"
View
3  features/step_definitions/aruba.rb
@@ -0,0 +1,3 @@
+require 'aruba'
+gem_bin_path = File.dirname(__FILE__) + '/../../bin'
+ENV['PATH'] = "#{gem_bin_path}:#{ENV['PATH']}"
View
8 features/step_definitions/fake_web_steps.rb
@@ -0,0 +1,8 @@
+require 'fake_web'
+FakeWeb.allow_net_connect = false
+FakeWeb.register_uri(:any, /.*/, :body => "Faked HTTP response")
+
+When /^it should POST to "http:\/\/localhost:80([^"]*)"$/ do |path|
+ request = FakeWeb.last_request
+ request.path.should == path
+end
View
1  features/support/env.rb
@@ -1 +0,0 @@
-require 'aruba'
Please sign in to comment.
Something went wrong with that request. Please try again.