spec/legal_docs_spec.rb in legal-docs-0.0.2 vs spec/legal_docs_spec.rb in legal-docs-0.0.3
- old
+ new
@@ -9,19 +9,27 @@
describe LegalDocs, "::privacy_policy" do
it "has a title" do
LegalDocs::privacy_policy.title.should == I18n.t(:'vendor.legal_docs.docs.privacy_policy.title')
end
+ it "has text" do
+ LegalDocs::privacy_policy.text.should match /Privacy Policy/
+ end
+
it "provides all necessary interpolations for the content" do
- expect { LegalDocs::privacy_policy.content }.to_not raise_error(I18n::MissingInterpolationArgument)
+ expect { LegalDocs::privacy_policy.text }.to_not raise_error(I18n::MissingInterpolationArgument)
end
end
describe LegalDocs, "::terms_of_service" do
it "has a title" do
LegalDocs::terms_of_service.title.should == I18n.t(:'vendor.legal_docs.docs.terms_of_service.title')
end
+ it "has text" do
+ LegalDocs::terms_of_service.text.should match /Terms of Service/
+ end
+
it "provides all necessary interpolations for the content" do
- expect { LegalDocs::terms_of_service.content }.to_not raise_error(I18n::MissingInterpolationArgument)
+ expect { LegalDocs::terms_of_service.text }.to_not raise_error(I18n::MissingInterpolationArgument)
end
end
\ No newline at end of file