From 7b6b3168a2358cb16800012e62920911433bef7f Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Mon, 11 May 2009 16:51:42 -0400 Subject: [PATCH] Revert "Correct some specs that need full URLs" This reverts commit 3e71ae3733e56cc724f207e142404b5c9859b1a5. Conflicts: spec/public/select_spec.rb --- .gitignore | 3 +-- spec/public/click_link_spec.rb | 4 ++-- spec/public/select_date_spec.rb | 2 +- spec/public/select_datetime_spec.rb | 2 +- spec/public/select_spec.rb | 2 +- spec/public/select_time_spec.rb | 2 +- 6 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 8c7320b..ce1f77d 100644 --- a/.gitignore +++ b/.gitignore @@ -11,5 +11,4 @@ log *.swp results test_apps -*.tmproj -webrat.log +*.tmproj \ No newline at end of file diff --git a/spec/public/click_link_spec.rb b/spec/public/click_link_spec.rb index 6fc7109..549c70b 100644 --- a/spec/public/click_link_spec.rb +++ b/spec/public/click_link_spec.rb @@ -108,7 +108,7 @@ describe "click_link" do Link text HTML - webrat_session.should_receive(:get).with("http://www.example.com/page", {}) + webrat_session.should_receive(:get).with("/page", {}) click_link 'piddle' end @@ -118,7 +118,7 @@ describe "click_link" do Link text HTML - webrat_session.should_receive(:get).with("http://www.example.com/page", {}) + webrat_session.should_receive(:get).with("/page", {}) click_link /iddle/ end diff --git a/spec/public/select_date_spec.rb b/spec/public/select_date_spec.rb index 7b9eb48..7611ada 100644 --- a/spec/public/select_date_spec.rb +++ b/spec/public/select_date_spec.rb @@ -90,7 +90,7 @@ describe "select_date" do HTML - webrat_session.should_receive(:post).with("http://www.example.com/appointments", + webrat_session.should_receive(:post).with("/appointments", "appointment" => {"date(1i)" => '2003', "date(2i)" => "12", "date(3i)" => "25"}) select_date Date.parse("December 25, 2003"), :from => "date ?" click_button diff --git a/spec/public/select_datetime_spec.rb b/spec/public/select_datetime_spec.rb index e917378..0297177 100644 --- a/spec/public/select_datetime_spec.rb +++ b/spec/public/select_datetime_spec.rb @@ -85,7 +85,7 @@ describe "select_datetime" do HTML - webrat_session.should_receive(:post).with("http://www.example.com/appointments", + webrat_session.should_receive(:post).with("/appointments", "appointment" => {"time(1i)" => '2003', "time(2i)" => "12", "time(3i)" => "25", "time(4i)" => "09", "time(5i)" => "30"}) select_datetime "December 25, 2003 9:30", :from => "Time ?" click_button diff --git a/spec/public/select_spec.rb b/spec/public/select_spec.rb index 4a65040..98dfca0 100644 --- a/spec/public/select_spec.rb +++ b/spec/public/select_spec.rb @@ -242,7 +242,7 @@ describe "select" do HTML - webrat_session.should_receive(:post).with("http://www.example.com/login", "clothes" => "pants") + webrat_session.should_receive(:post).with("/login", "clothes" => "pants") click_button end diff --git a/spec/public/select_time_spec.rb b/spec/public/select_time_spec.rb index cdcf821..3eafbaa 100644 --- a/spec/public/select_time_spec.rb +++ b/spec/public/select_time_spec.rb @@ -58,7 +58,7 @@ describe "select_time" do HTML - webrat_session.should_receive(:post).with("http://www.example.com/appointments", + webrat_session.should_receive(:post).with("/appointments", "appointment" => {"time(4i)" => "09", "time(5i)" => "30"}) select_time "9:30AM", :from => "Time #" click_button