Skip to content

Commit

Permalink
Revert "Correct some specs that need full URLs"
Browse files Browse the repository at this point in the history
This reverts commit 3e71ae3.

Conflicts:

	spec/public/select_spec.rb
  • Loading branch information
brynary committed May 11, 2009
1 parent b439d7f commit 7b6b316
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Expand Up @@ -11,5 +11,4 @@ log
*.swp
results
test_apps
*.tmproj
webrat.log
*.tmproj
4 changes: 2 additions & 2 deletions spec/public/click_link_spec.rb
Expand Up @@ -108,7 +108,7 @@
<a title="piddle" href="/page">Link text</a>
</html>
HTML
webrat_session.should_receive(:get).with("http://www.example.com/page", {})
webrat_session.should_receive(:get).with("/page", {})
click_link 'piddle'
end

Expand All @@ -118,7 +118,7 @@
<a title="piddlediddle" href="/page">Link text</a>
</html>
HTML
webrat_session.should_receive(:get).with("http://www.example.com/page", {})
webrat_session.should_receive(:get).with("/page", {})
click_link /iddle/
end

Expand Down
2 changes: 1 addition & 1 deletion spec/public/select_date_spec.rb
Expand Up @@ -90,7 +90,7 @@
</form>
</html>
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
Expand Down
2 changes: 1 addition & 1 deletion spec/public/select_datetime_spec.rb
Expand Up @@ -85,7 +85,7 @@
</form>
</html>
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
Expand Down
2 changes: 1 addition & 1 deletion spec/public/select_spec.rb
Expand Up @@ -242,7 +242,7 @@
</html>
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

Expand Down
2 changes: 1 addition & 1 deletion spec/public/select_time_spec.rb
Expand Up @@ -58,7 +58,7 @@
</form>
</html>
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
Expand Down

0 comments on commit 7b6b316

Please sign in to comment.