Sha256: dd19a98ddf3c28155c487f3d0a2fa3a098fed69947edf64378f981efe00e1bdd

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

require 'spec_helper'

describe <%= class_name %>Widget do
  has_widgets do |root|
    root << widget('<%= class_name.underscore %>')
  end
  
  <%- for action in actions -%>
  it "should render :<%= action %>" do
    render_widget('<%= class_name.tableize.singularize %>', :<%= action %>).should have_selector("h1")
  end
  
  <%- end -%>
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspec-apotomo-0.9.7 lib/generators/rspec/templates/widget_spec.erb
rspec-apotomo-0.9.6 lib/generators/rspec/templates/widget_spec.erb
rspec-apotomo-0.9.5 lib/generators/rspec/templates/widget_spec.erb