From c636f067db0f6918872193c8feee86b6ed5dc417 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 23 Jan 2015 19:45:41 -0500 Subject: Generate Note model --- test/fixtures/notes.yml | 9 +++++++++ test/models/note_test.rb | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 test/fixtures/notes.yml create mode 100644 test/models/note_test.rb (limited to 'test') diff --git a/test/fixtures/notes.yml b/test/fixtures/notes.yml new file mode 100644 index 0000000..e192dee --- /dev/null +++ b/test/fixtures/notes.yml @@ -0,0 +1,9 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + title: MyString + body: MyText + +two: + title: MyString + body: MyText diff --git a/test/models/note_test.rb b/test/models/note_test.rb new file mode 100644 index 0000000..7bbab53 --- /dev/null +++ b/test/models/note_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class NoteTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end -- cgit v1.2.3 From 1d8d8322f0595dcf13f65e13c6ad4ec4bb2e410f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 23 Jan 2015 19:47:16 -0500 Subject: Generate NotesController --- test/controllers/notes_controller_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/controllers/notes_controller_test.rb (limited to 'test') diff --git a/test/controllers/notes_controller_test.rb b/test/controllers/notes_controller_test.rb new file mode 100644 index 0000000..2a3800c --- /dev/null +++ b/test/controllers/notes_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class NotesControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end -- cgit v1.2.3