From ad80c40944743515a45d70014e8d5ffb88cd74fc Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 25 Jun 2017 00:00:28 -0400 Subject: Started designing index page --- test/controllers/entries_controller_test.rb | 9 +++++++++ test/controllers/records_controller_test.rb | 9 +++++++++ test/fixtures/entries.yml | 15 +++++++++++++++ test/fixtures/links.yml | 9 +++++++++ test/fixtures/posts.yml | 9 +++++++++ test/fixtures/records.yml | 7 +++++++ test/models/entry_test.rb | 7 +++++++ test/models/link_test.rb | 7 +++++++ test/models/post_test.rb | 7 +++++++ test/models/record_test.rb | 7 +++++++ 10 files changed, 86 insertions(+) create mode 100644 test/controllers/entries_controller_test.rb create mode 100644 test/controllers/records_controller_test.rb create mode 100644 test/fixtures/entries.yml create mode 100644 test/fixtures/links.yml create mode 100644 test/fixtures/posts.yml create mode 100644 test/fixtures/records.yml create mode 100644 test/models/entry_test.rb create mode 100644 test/models/link_test.rb create mode 100644 test/models/post_test.rb create mode 100644 test/models/record_test.rb (limited to 'test') diff --git a/test/controllers/entries_controller_test.rb b/test/controllers/entries_controller_test.rb new file mode 100644 index 0000000..6e2db59 --- /dev/null +++ b/test/controllers/entries_controller_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class EntriesControllerTest < ActionDispatch::IntegrationTest + test "should get show" do + get entries_show_url + assert_response :success + end + +end diff --git a/test/controllers/records_controller_test.rb b/test/controllers/records_controller_test.rb new file mode 100644 index 0000000..6eeb2c3 --- /dev/null +++ b/test/controllers/records_controller_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class RecordsControllerTest < ActionDispatch::IntegrationTest + test "should get index" do + get records_index_url + assert_response :success + end + +end diff --git a/test/fixtures/entries.yml b/test/fixtures/entries.yml new file mode 100644 index 0000000..7bb736a --- /dev/null +++ b/test/fixtures/entries.yml @@ -0,0 +1,15 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + title: MyString + body: MyText + directory: MyString + slug: MyString + type: + +two: + title: MyString + body: MyText + directory: MyString + slug: MyString + type: diff --git a/test/fixtures/links.yml b/test/fixtures/links.yml new file mode 100644 index 0000000..1560785 --- /dev/null +++ b/test/fixtures/links.yml @@ -0,0 +1,9 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + directory: MyString + slug: MyString + +two: + directory: MyString + slug: MyString diff --git a/test/fixtures/posts.yml b/test/fixtures/posts.yml new file mode 100644 index 0000000..e192dee --- /dev/null +++ b/test/fixtures/posts.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/fixtures/records.yml b/test/fixtures/records.yml new file mode 100644 index 0000000..2e0c8cd --- /dev/null +++ b/test/fixtures/records.yml @@ -0,0 +1,7 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + description: MyText + +two: + description: MyText diff --git a/test/models/entry_test.rb b/test/models/entry_test.rb new file mode 100644 index 0000000..d3293bc --- /dev/null +++ b/test/models/entry_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class EntryTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/link_test.rb b/test/models/link_test.rb new file mode 100644 index 0000000..944bfce --- /dev/null +++ b/test/models/link_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class LinkTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/post_test.rb b/test/models/post_test.rb new file mode 100644 index 0000000..6d9d463 --- /dev/null +++ b/test/models/post_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class PostTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/record_test.rb b/test/models/record_test.rb new file mode 100644 index 0000000..47cf779 --- /dev/null +++ b/test/models/record_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class RecordTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end -- cgit 1.4.1