Sha256: c50c0e7cf78ae6f826cce3ca996390a3987d950e25e155df59d50d8199cec342
Contents?: true
Size: 558 Bytes
Versions: 1
Compression:
Stored size: 558 Bytes
Contents
require 'spec_helper' describe FeaturesHelper do before :each do @topic = Topic.create! end describe "features_form_for" do it "should render the form for a new feature" do helper.feature_form_for(@topic).should =~ /id="new_feature"/ end end describe "features_for" do it "should be empty if there are no features for the featureable" do helper.features_for(@topic).should be_blank end it "should render a list of features" do @topic.features.create! helper.features_for(@topic).should =~ /class="feature"/ end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_featureable-0.0.2 | spec/helpers/features_helper_spec.rb |