about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-06-25 00:00:28 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-06-25 00:00:28 -0400
commitad80c40944743515a45d70014e8d5ffb88cd74fc (patch)
tree0e97b3d46f3ed3594a1e4074e4a5a06deefcd76d /test
parent5581530930129d7854ed5d99d058939ad9c790c2 (diff)
downloadthoughts-ad80c40944743515a45d70014e8d5ffb88cd74fc.tar.gz
thoughts-ad80c40944743515a45d70014e8d5ffb88cd74fc.tar.bz2
thoughts-ad80c40944743515a45d70014e8d5ffb88cd74fc.zip
Started designing index page
Diffstat (limited to 'test')
-rw-r--r--test/controllers/entries_controller_test.rb9
-rw-r--r--test/controllers/records_controller_test.rb9
-rw-r--r--test/fixtures/entries.yml15
-rw-r--r--test/fixtures/links.yml9
-rw-r--r--test/fixtures/posts.yml9
-rw-r--r--test/fixtures/records.yml7
-rw-r--r--test/models/entry_test.rb7
-rw-r--r--test/models/link_test.rb7
-rw-r--r--test/models/post_test.rb7
-rw-r--r--test/models/record_test.rb7
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 @@
1require 'test_helper'
2
3class EntriesControllerTest < ActionDispatch::IntegrationTest
4 test "should get show" do
5 get entries_show_url
6 assert_response :success
7 end
8
9end
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 @@
1require 'test_helper'
2
3class RecordsControllerTest < ActionDispatch::IntegrationTest
4 test "should get index" do
5 get records_index_url
6 assert_response :success
7 end
8
9end
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
3one:
4 title: MyString
5 body: MyText
6 directory: MyString
7 slug: MyString
8 type:
9
10two:
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
3one:
4 directory: MyString
5 slug: MyString
6
7two:
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
3one:
4 title: MyString
5 body: MyText
6
7two:
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
3one:
4 description: MyText
5
6two:
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 @@
1require 'test_helper'
2
3class EntryTest < ActiveSupport::TestCase
4 # test "the truth" do
5 # assert true
6 # end
7end
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 @@
1require 'test_helper'
2
3class LinkTest < ActiveSupport::TestCase
4 # test "the truth" do
5 # assert true
6 # end
7end
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 @@
1require 'test_helper'
2
3class PostTest < ActiveSupport::TestCase
4 # test "the truth" do
5 # assert true
6 # end
7end
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 @@
1require 'test_helper'
2
3class RecordTest < ActiveSupport::TestCase
4 # test "the truth" do
5 # assert true
6 # end
7end