Skip to content

Instantly share code, notes, and snippets.

@dariocravero
Created April 12, 2013 19:35
Show Gist options
  • Save dariocravero/5374523 to your computer and use it in GitHub Desktop.
Save dariocravero/5374523 to your computer and use it in GitHub Desktop.
require File.expand_path('../../../../app/helpers/issue_helper', __FILE__)
describe "IssueHelper" do
subject do
Class.new do
include Padrino::Helpers::OutputHelpers
include Padrino::Helpers::TagHelpers
include Magazineshop::IssueHelper
end
end
describe "render_issues helper" do
describe "with empty issues collection" do
it "must render placeholder text" do
subject.new.render_issues.must_match /Keine Ausgaben vorhanden/
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment