show.html.erb_spec.rb 2.32 KB
# Author - Igor Portela - igorportela.com | Copyright(c) 2013. All rights reserved.
require 'spec_helper'

describe "wikivideos/show" do
  before(:each) do
    @wikivideo = assign(:wikivideo, stub_model(Wikivideo,
      :signal_name => "Signal Name",
      :movement_type => "Movement Type",
      :amount_of_hands => "Amount Of Hands",
      :facial_expression => "Facial Expression",
      :repeat_flag_primary => "Repeat Flag Primary",
      :primary_configuration_fingers => "Primary Configuration Fingers",
      :primary_orientation_of_hands => "Primary Orientation Of Hands",
      :subdivision_of_articulation_primary => "Subdivision Of Articulation Primary",
      :localization_of_articulation_primary => "Localization Of Articulation Primary",
      :time_spent => "",
      :user_id => nil
    ))
  end

  it "renders attributes in <p>" do
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/Signal Name/)
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/Movement Type/)
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/Amount Of Hands/)
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/Facial Expression/)
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/Repeat Flag Primary/)
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/Primary Configuration Fingers/)
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/Primary Orientation Of Hands/)
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/Subdivision Of Articulation Primary/)
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/Localization Of Articulation Primary/)
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(//)
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(//)
  end
end