can add relation between co-author

This commit is contained in:
Rueshyna committed 2012-12-03 12:10:45 +08:00
1 parent a0fc2caaf6
commit a0aa5e6d45
18 files changed
+350 -77

No files matched your search

@@ -0,0 +1,15 @@
require 'spec_helper'
describe "desktop/co_author_relations/edit" do
before(:each) do
@desktop_co_author_relation = assign(:desktop_co_author_relation, stub_model(Desktop::CoAuthorRelation))
end
it "renders the edit desktop_co_author_relation form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form", :action => desktop_co_author_relations_path(@desktop_co_author_relation), :method => "post" do
end
end
end
@@ -0,0 +1,15 @@
require 'spec_helper'
describe "desktop/co_author_relations/index" do
before(:each) do
assign(:desktop_co_author_relations, [
stub_model(Desktop::CoAuthorRelation),
stub_model(Desktop::CoAuthorRelation)
])
end
it "renders a list of desktop/co_author_relations" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
end
end
@@ -0,0 +1,15 @@
require 'spec_helper'
describe "desktop/co_author_relations/new" do
before(:each) do
assign(:desktop_co_author_relation, stub_model(Desktop::CoAuthorRelation).as_new_record)
end
it "renders new desktop_co_author_relation form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form", :action => desktop_co_author_relations_path, :method => "post" do
end
end
end
@@ -0,0 +1,12 @@
require 'spec_helper'
describe "desktop/co_author_relations/show" do
before(:each) do
@desktop_co_author_relation = assign(:desktop_co_author_relation, stub_model(Desktop::CoAuthorRelation))
end
it "renders attributes in <p>" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
end
end