Skip to content

Instantly share code, notes, and snippets.

@erez-rabih
Created September 25, 2013 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erez-rabih/6698523 to your computer and use it in GitHub Desktop.
Save erez-rabih/6698523 to your computer and use it in GitHub Desktop.
#Spec 2
context "reaction templates exist, but non fitting" do
before :each do
reaction1 = ReactionTemplate.create! locale: "de", subtypes: ["basic", "top_x"]
reaction2 = ReactionTemplate.create! locale: "en", subtypes: ["slideshow", "top_x"]
end
it "should return no reaction template" do
reaction = FindReaction.for(@post).reaction
reaction.should be_blank
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment