add journal list template

This commit is contained in:
Rueshyna authored and chris committed 2012-12-04 00:25:58 +08:00
1 parent e2da22b29c
commit 5a9d9151d9
15 files changed
+421

No files matched your search

@@ -0,0 +1,15 @@
require 'spec_helper'
describe "desktop/journal_lists/edit" do
before(:each) do
@desktop_journal_list = assign(:desktop_journal_list, stub_model(Desktop::JournalList))
end
it "renders the edit desktop_journal_list form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form", :action => desktop_journal_lists_path(@desktop_journal_list), :method => "post" do
end
end
end
@@ -0,0 +1,15 @@
require 'spec_helper'
describe "desktop/journal_lists/index" do
before(:each) do
assign(:desktop_journal_lists, [
stub_model(Desktop::JournalList),
stub_model(Desktop::JournalList)
])
end
it "renders a list of desktop/journal_lists" 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/journal_lists/new" do
before(:each) do
assign(:desktop_journal_list, stub_model(Desktop::JournalList).as_new_record)
end
it "renders new desktop_journal_list form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form", :action => desktop_journal_lists_path, :method => "post" do
end
end
end
@@ -0,0 +1,12 @@
require 'spec_helper'
describe "desktop/journal_lists/show" do
before(:each) do
@desktop_journal_list = assign(:desktop_journal_list, stub_model(Desktop::JournalList))
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