Skip to content
Browse files

update license test

  • Loading branch information...
1 parent 16c8069 commit f3906cc0f71a46fc6582bb0be7c6153e7979d3ce @inukshuk inukshuk committed
Showing with 6 additions and 4 deletions.
  1. +6 −4 spec/locales_spec.rb
View
10 spec/locales_spec.rb
@@ -26,7 +26,7 @@
it "has a region" do
locale.region.should_not be_empty
end unless id == 'locales-eu'
-
+
it "its language and region match the filename" do
locale.to_s.should == id[8,5]
end
@@ -36,10 +36,12 @@
end
it "is licensed under a CC BY-SA license" do
- locale.info.rights.to_s.strip.should =~
- /^This work is licensed under a Creative Commons Attribution-ShareAlike 3\.0 License(: http:\/\/creativecommons\.org\/licenses\/by-sa\/3\.0\/)?$/
+ locale.info.rights.to_s.strip.should ==
+ 'This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License'
+
+ locale.info.rights[:license].should == 'http://creativecommons.org/licenses/by-sa/3.0/'
end
end
-
+
end
end

0 comments on commit f3906cc

Please sign in to comment.
Something went wrong with that request. Please try again.