Permalink
Browse files

more stringent rights comparison

  • Loading branch information...
1 parent 0298aff commit 867885b1479bc2568e1a54bcd7388099babc93a6 @inukshuk inukshuk committed Nov 9, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 spec/dependent_styles_spec.rb
  2. +1 −1 spec/independent_styles_spec.rb
@@ -58,7 +58,7 @@
end
it "is licensed under a CC BY-SA license" do
- (style.info.rights.to_s.strip == 'This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License' && style.info.rights[:license].should == 'http://creativecommons.org/licenses/by-sa/3.0/').should be_true
+ (style.info.rights.text == 'This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License' && style.info.rights[:license].should == 'http://creativecommons.org/licenses/by-sa/3.0/').should be_true
end
it "its independent-parent link points to an existing style" do
@@ -44,7 +44,7 @@
end
it "is licensed under a CC BY-SA license" do
- (style.info.rights.to_s.strip == 'This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License' && style.info.rights[:license].should == 'http://creativecommons.org/licenses/by-sa/3.0/').should be_true
+ (style.info.rights.text == 'This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License' && style.info.rights[:license].should == 'http://creativecommons.org/licenses/by-sa/3.0/').should be_true
end
it "its template-link (if present) points to an existing independent style" do

0 comments on commit 867885b

Please sign in to comment.