Permalink
Browse files

more precise matching for project_url test

  • Loading branch information...
1 parent a1a371f commit 430ae291713ad1966224716b0f86afc735e09090 @smudge committed Feb 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/project_spec.rb
View
@@ -48,7 +48,7 @@
it "finds the project's canonical url" do
VCR.use_cassette goats do
@project = Kickstarter::Project.new("http://kck.st/zWboXB")
- @project.url.should match(Regexp.new goats)
+ @project.url.should match("^https?://www.kickstarter.com/" + goats)
end
end

0 comments on commit 430ae29

Please sign in to comment.