Sha256: f7f85930a7164a29ffa4455b41d76fc676c332540aaf2ce15d05de7b6dd5c9b4
Contents?: true
Size: 751 Bytes
Versions: 1
Compression:
Stored size: 751 Bytes
Contents
require 'spec_helper' describe <%= class_name %>Cell do context "cell rendering" do <%- actions.each_with_index do |state, index| -%> context "rendering <%= state %>" do subject { render_cell(<%= cell_name %>, :<%= state %>) } <%- if defined?(Capybara) -%> it { should have_selector("h1", :text => "<%= class_name %>#<%= state %>") } it { should have_selector("p", :text => "Find me in app/cells/<%= file_path %>/<%= state %>.html") } <%- else -%> it { should include "<%= class_name %>#<%= state %>" } it { should include "Find me in app/cells/<%= file_path %>/<%= state %>.html" } <%- end -%> end <%- unless index == actions.length - 1 -%> <%- end -%> <%- end -%> end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-cells-0.1.12 | lib/generators/rspec/templates/cell_spec.erb |