change meetings

This commit is contained in:
Sai
2014-08-27 15:22:47 +02:00
parent 3b6a964ae6
commit 585b386e7c
45 changed files with 1046 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
require 'spec_helper'
describe "fetmeetings/edit" do
before(:each) do
@fetmeeting = assign(:fetmeeting, stub_model(Fetmeeting,
:tnlist => "MyText",
:typ => 1
))
end
it "renders the edit fetmeeting form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", fetmeeting_path(@fetmeeting), "post" do
assert_select "textarea#fetmeeting_tnlist[name=?]", "fetmeeting[tnlist]"
assert_select "input#fetmeeting_typ[name=?]", "fetmeeting[typ]"
end
end
end

View File

@@ -0,0 +1,23 @@
require 'spec_helper'
describe "fetmeetings/index" do
before(:each) do
assign(:fetmeetings, [
stub_model(Fetmeeting,
:tnlist => "MyText",
:typ => 1
),
stub_model(Fetmeeting,
:tnlist => "MyText",
:typ => 1
)
])
end
it "renders a list of fetmeetings" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "tr>td", :text => "MyText".to_s, :count => 2
assert_select "tr>td", :text => 1.to_s, :count => 2
end
end

View File

@@ -0,0 +1,20 @@
require 'spec_helper'
describe "fetmeetings/new" do
before(:each) do
assign(:fetmeeting, stub_model(Fetmeeting,
:tnlist => "MyText",
:typ => 1
).as_new_record)
end
it "renders new fetmeeting form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", fetmeetings_path, "post" do
assert_select "textarea#fetmeeting_tnlist[name=?]", "fetmeeting[tnlist]"
assert_select "input#fetmeeting_typ[name=?]", "fetmeeting[typ]"
end
end
end

View File

@@ -0,0 +1,17 @@
require 'spec_helper'
describe "fetmeetings/show" do
before(:each) do
@fetmeeting = assign(:fetmeeting, stub_model(Fetmeeting,
:tnlist => "MyText",
:typ => 1
))
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(/MyText/)
rendered.should match(/1/)
end
end