require 'spec_helper' describe <%= class_name %>Cell do context "cell rendering" do <% for state in actions %> context "rendering <%= state %>" do subject { render_cell(:<%= file_name %>, :<%= state %>) } it { should have_selector("h1", :text => "<%= class_name %>#<%= state %>") } it { should have_selector("p", :text => "Find me in app/cells/<%= file_name %>/<%= state %>.html") } end <% end %> end context "cell instance" do subject { cell(:<%= file_name %>) } <% for state in actions %> it { should respond_to(:<%= state %>) } <% end %> end end