From 45072f34d27bda34b182f14f8b02d778d1648cce Mon Sep 17 00:00:00 2001 From: John Kelly Ferguson Date: Sun, 25 May 2014 18:48:14 -0400 Subject: Rename Posts to Articles in Guides' Getting Started App, continuation of #15215 [ci skip] --- .../getting_started/test/controllers/articles_controller_test.rb | 7 +++++++ .../getting_started/test/controllers/posts_controller_test.rb | 7 ------- guides/code/getting_started/test/fixtures/articles.yml | 9 +++++++++ guides/code/getting_started/test/fixtures/comments.yml | 4 ++-- guides/code/getting_started/test/fixtures/posts.yml | 9 --------- guides/code/getting_started/test/helpers/articles_helper_test.rb | 4 ++++ guides/code/getting_started/test/helpers/posts_helper_test.rb | 4 ---- guides/code/getting_started/test/models/article_test.rb | 7 +++++++ guides/code/getting_started/test/models/post_test.rb | 7 ------- 9 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 guides/code/getting_started/test/controllers/articles_controller_test.rb delete mode 100644 guides/code/getting_started/test/controllers/posts_controller_test.rb create mode 100644 guides/code/getting_started/test/fixtures/articles.yml delete mode 100644 guides/code/getting_started/test/fixtures/posts.yml create mode 100644 guides/code/getting_started/test/helpers/articles_helper_test.rb delete mode 100644 guides/code/getting_started/test/helpers/posts_helper_test.rb create mode 100644 guides/code/getting_started/test/models/article_test.rb delete mode 100644 guides/code/getting_started/test/models/post_test.rb (limited to 'guides/code/getting_started/test') diff --git a/guides/code/getting_started/test/controllers/articles_controller_test.rb b/guides/code/getting_started/test/controllers/articles_controller_test.rb new file mode 100644 index 0000000000..361aa0f47f --- /dev/null +++ b/guides/code/getting_started/test/controllers/articles_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class ArticlesControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/guides/code/getting_started/test/controllers/posts_controller_test.rb b/guides/code/getting_started/test/controllers/posts_controller_test.rb deleted file mode 100644 index 7a6ee4f1db..0000000000 --- a/guides/code/getting_started/test/controllers/posts_controller_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PostsControllerTest < ActionController::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/guides/code/getting_started/test/fixtures/articles.yml b/guides/code/getting_started/test/fixtures/articles.yml new file mode 100644 index 0000000000..46b01c3bb4 --- /dev/null +++ b/guides/code/getting_started/test/fixtures/articles.yml @@ -0,0 +1,9 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + title: MyString + text: MyText + +two: + title: MyString + text: MyText diff --git a/guides/code/getting_started/test/fixtures/comments.yml b/guides/code/getting_started/test/fixtures/comments.yml index 9e409d8a61..05ad26f051 100644 --- a/guides/code/getting_started/test/fixtures/comments.yml +++ b/guides/code/getting_started/test/fixtures/comments.yml @@ -3,9 +3,9 @@ one: commenter: MyString body: MyText - post_id: + article_id: two: commenter: MyString body: MyText - post_id: + article_id: diff --git a/guides/code/getting_started/test/fixtures/posts.yml b/guides/code/getting_started/test/fixtures/posts.yml deleted file mode 100644 index 46b01c3bb4..0000000000 --- a/guides/code/getting_started/test/fixtures/posts.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - title: MyString - text: MyText - -two: - title: MyString - text: MyText diff --git a/guides/code/getting_started/test/helpers/articles_helper_test.rb b/guides/code/getting_started/test/helpers/articles_helper_test.rb new file mode 100644 index 0000000000..b341344067 --- /dev/null +++ b/guides/code/getting_started/test/helpers/articles_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class ArticlesHelperTest < ActionView::TestCase +end diff --git a/guides/code/getting_started/test/helpers/posts_helper_test.rb b/guides/code/getting_started/test/helpers/posts_helper_test.rb deleted file mode 100644 index 48549c2ea1..0000000000 --- a/guides/code/getting_started/test/helpers/posts_helper_test.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'test_helper' - -class PostsHelperTest < ActionView::TestCase -end diff --git a/guides/code/getting_started/test/models/article_test.rb b/guides/code/getting_started/test/models/article_test.rb new file mode 100644 index 0000000000..11c8abe5f4 --- /dev/null +++ b/guides/code/getting_started/test/models/article_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class ArticleTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/guides/code/getting_started/test/models/post_test.rb b/guides/code/getting_started/test/models/post_test.rb deleted file mode 100644 index 6d9d463a71..0000000000 --- a/guides/code/getting_started/test/models/post_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PostTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end -- cgit v1.2.3