forked from bofh/fetsite
Revert "change meetings"
This reverts commit 585b386e7c.
Conflicts:
app/controllers/neuigkeiten_controller.rb
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
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
|
||||
@@ -1,23 +0,0 @@
|
||||
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
|
||||
@@ -1,20 +0,0 @@
|
||||
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
|
||||
@@ -1,17 +0,0 @@
|
||||
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
|
||||
@@ -1,26 +0,0 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe "fetmeetingtops/edit" do
|
||||
before(:each) do
|
||||
@fetmeetingtop = assign(:fetmeetingtop, stub_model(Fetmeetingtop,
|
||||
:title => "MyString",
|
||||
:text => "MyText",
|
||||
:discussion => "MyText",
|
||||
:ersteller => "MyString",
|
||||
:fetmeeting_id => 1
|
||||
))
|
||||
end
|
||||
|
||||
it "renders the edit fetmeetingtop form" do
|
||||
render
|
||||
|
||||
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
||||
assert_select "form[action=?][method=?]", fetmeetingtop_path(@fetmeetingtop), "post" do
|
||||
assert_select "input#fetmeetingtop_title[name=?]", "fetmeetingtop[title]"
|
||||
assert_select "textarea#fetmeetingtop_text[name=?]", "fetmeetingtop[text]"
|
||||
assert_select "textarea#fetmeetingtop_discussion[name=?]", "fetmeetingtop[discussion]"
|
||||
assert_select "input#fetmeetingtop_ersteller[name=?]", "fetmeetingtop[ersteller]"
|
||||
assert_select "input#fetmeetingtop_fetmeeting_id[name=?]", "fetmeetingtop[fetmeeting_id]"
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,32 +0,0 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe "fetmeetingtops/index" do
|
||||
before(:each) do
|
||||
assign(:fetmeetingtops, [
|
||||
stub_model(Fetmeetingtop,
|
||||
:title => "Title",
|
||||
:text => "MyText",
|
||||
:discussion => "MyText",
|
||||
:ersteller => "Ersteller",
|
||||
:fetmeeting_id => 1
|
||||
),
|
||||
stub_model(Fetmeetingtop,
|
||||
:title => "Title",
|
||||
:text => "MyText",
|
||||
:discussion => "MyText",
|
||||
:ersteller => "Ersteller",
|
||||
:fetmeeting_id => 1
|
||||
)
|
||||
])
|
||||
end
|
||||
|
||||
it "renders a list of fetmeetingtops" do
|
||||
render
|
||||
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
||||
assert_select "tr>td", :text => "Title".to_s, :count => 2
|
||||
assert_select "tr>td", :text => "MyText".to_s, :count => 2
|
||||
assert_select "tr>td", :text => "MyText".to_s, :count => 2
|
||||
assert_select "tr>td", :text => "Ersteller".to_s, :count => 2
|
||||
assert_select "tr>td", :text => 1.to_s, :count => 2
|
||||
end
|
||||
end
|
||||
@@ -1,26 +0,0 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe "fetmeetingtops/new" do
|
||||
before(:each) do
|
||||
assign(:fetmeetingtop, stub_model(Fetmeetingtop,
|
||||
:title => "MyString",
|
||||
:text => "MyText",
|
||||
:discussion => "MyText",
|
||||
:ersteller => "MyString",
|
||||
:fetmeeting_id => 1
|
||||
).as_new_record)
|
||||
end
|
||||
|
||||
it "renders new fetmeetingtop form" do
|
||||
render
|
||||
|
||||
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
||||
assert_select "form[action=?][method=?]", fetmeetingtops_path, "post" do
|
||||
assert_select "input#fetmeetingtop_title[name=?]", "fetmeetingtop[title]"
|
||||
assert_select "textarea#fetmeetingtop_text[name=?]", "fetmeetingtop[text]"
|
||||
assert_select "textarea#fetmeetingtop_discussion[name=?]", "fetmeetingtop[discussion]"
|
||||
assert_select "input#fetmeetingtop_ersteller[name=?]", "fetmeetingtop[ersteller]"
|
||||
assert_select "input#fetmeetingtop_fetmeeting_id[name=?]", "fetmeetingtop[fetmeeting_id]"
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,23 +0,0 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe "fetmeetingtops/show" do
|
||||
before(:each) do
|
||||
@fetmeetingtop = assign(:fetmeetingtop, stub_model(Fetmeetingtop,
|
||||
:title => "Title",
|
||||
:text => "MyText",
|
||||
:discussion => "MyText",
|
||||
:ersteller => "Ersteller",
|
||||
:fetmeeting_id => 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(/Title/)
|
||||
rendered.should match(/MyText/)
|
||||
rendered.should match(/MyText/)
|
||||
rendered.should match(/Ersteller/)
|
||||
rendered.should match(/1/)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user