Skip to content

Instantly share code, notes, and snippets.

@stevencwarren
Created November 8, 2012 20:09
Show Gist options
  • Save stevencwarren/4041212 to your computer and use it in GitHub Desktop.
Save stevencwarren/4041212 to your computer and use it in GitHub Desktop.
context "The article is an ebsco article" do
before(:each) do
@ea = Factory(:ebsco_article, :teaser => '<p>\r\n\t&nbsp;</p>\r\n<p>teaser text</p>', :text => '<p>\r\n\t&nbsp;</p>\r\n<p>body text</p>')
end
it "should not call p clean on the teaser" do
@ea.teaser.should == '<p>\r\n\t&nbsp;</p>\r\n<p>teaser text</p>'
end
it "should not call p clean on the text" do
@ea.text.should == '<p>\r\n\t&nbsp;</p>\r\n<p>body text</p>'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment