diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/controllers/entries_controller_test.rb | 9 | ||||
-rw-r--r-- | test/controllers/records_controller_test.rb | 9 | ||||
-rw-r--r-- | test/fixtures/entries.yml | 15 | ||||
-rw-r--r-- | test/fixtures/links.yml | 9 | ||||
-rw-r--r-- | test/fixtures/posts.yml | 9 | ||||
-rw-r--r-- | test/fixtures/records.yml | 7 | ||||
-rw-r--r-- | test/models/entry_test.rb | 7 | ||||
-rw-r--r-- | test/models/link_test.rb | 7 | ||||
-rw-r--r-- | test/models/post_test.rb | 7 | ||||
-rw-r--r-- | test/models/record_test.rb | 7 |
10 files changed, 86 insertions, 0 deletions
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 @@ | |||
1 | require 'test_helper' | ||
2 | |||
3 | class EntriesControllerTest < ActionDispatch::IntegrationTest | ||
4 | test "should get show" do | ||
5 | get entries_show_url | ||
6 | assert_response :success | ||
7 | end | ||
8 | |||
9 | 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 @@ | |||
1 | require 'test_helper' | ||
2 | |||
3 | class RecordsControllerTest < ActionDispatch::IntegrationTest | ||
4 | test "should get index" do | ||
5 | get records_index_url | ||
6 | assert_response :success | ||
7 | end | ||
8 | |||
9 | 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 @@ | |||
1 | # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html | ||
2 | |||
3 | one: | ||
4 | title: MyString | ||
5 | body: MyText | ||
6 | directory: MyString | ||
7 | slug: MyString | ||
8 | type: | ||
9 | |||
10 | two: | ||
11 | title: MyString | ||
12 | body: MyText | ||
13 | directory: MyString | ||
14 | slug: MyString | ||
15 | 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 @@ | |||
1 | # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html | ||
2 | |||
3 | one: | ||
4 | directory: MyString | ||
5 | slug: MyString | ||
6 | |||
7 | two: | ||
8 | directory: MyString | ||
9 | 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 @@ | |||
1 | # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html | ||
2 | |||
3 | one: | ||
4 | title: MyString | ||
5 | body: MyText | ||
6 | |||
7 | two: | ||
8 | title: MyString | ||
9 | 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 @@ | |||
1 | # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html | ||
2 | |||
3 | one: | ||
4 | description: MyText | ||
5 | |||
6 | two: | ||
7 | 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 @@ | |||
1 | require 'test_helper' | ||
2 | |||
3 | class EntryTest < ActiveSupport::TestCase | ||
4 | # test "the truth" do | ||
5 | # assert true | ||
6 | # end | ||
7 | 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 @@ | |||
1 | require 'test_helper' | ||
2 | |||
3 | class LinkTest < ActiveSupport::TestCase | ||
4 | # test "the truth" do | ||
5 | # assert true | ||
6 | # end | ||
7 | 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 @@ | |||
1 | require 'test_helper' | ||
2 | |||
3 | class PostTest < ActiveSupport::TestCase | ||
4 | # test "the truth" do | ||
5 | # assert true | ||
6 | # end | ||
7 | 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 @@ | |||
1 | require 'test_helper' | ||
2 | |||
3 | class RecordTest < ActiveSupport::TestCase | ||
4 | # test "the truth" do | ||
5 | # assert true | ||
6 | # end | ||
7 | end | ||