show.html.erb_spec.rb
2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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