Permalink
Browse files

Merge branch 'add_features'

Conflicts:
	features/push.feature
  • Loading branch information...
2 parents 43d9403 + 620dd77 commit 0d8dcbfa0d1b650eaeebbff17c466a63ebb64211 @mattwynne mattwynne committed Oct 3, 2010
View
@@ -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"
@@ -0,0 +1,3 @@
+require 'aruba'
+gem_bin_path = File.dirname(__FILE__) + '/../../bin'
+ENV['PATH'] = "#{gem_bin_path}:#{ENV['PATH']}"
@@ -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 +0,0 @@
-require 'aruba'

0 comments on commit 0d8dcbf

Please sign in to comment.