Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuuleh committed Jul 7, 2016
1 parent 408f31f commit 2c68489
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions spec/requests/api/pages_spec.rb
Expand Up @@ -12,15 +12,6 @@ def json
let(:english) { create :language, traits: :english }
let(:spanish) { create :language, traits: :spanish }

# let!(:german_pages) { create_list :page, 10, language: german }
# let!(:featured_german_pages) { create_list :page, 10, language: german, featured: true }
# let!(:french_pages) { create_list :page, 10, language: french }
# let!(:featured_french_pages) { create_list :page, 10, language: french, featured: true }
# let!(:english_pages) { create_list :page, 10, language: english }
# let!(:featured_english_pages) { create_list :page, 10, language: english, featured: true }
# let!(:spanish_pages) { create_list :page, 10, language: spanish }
# let!(:featured_spanish_pages) { create_list :page, 10, language: spanish, featured: true }

# TODO: MAKE INTO SHARED EXAMPLES FOR FEATURED AND PAGE SHOW SPECS
page_hash = {}
Language.all.each do |language|
Expand All @@ -31,26 +22,7 @@ def json
featured: featured
}
end
#
# let(:page_hash) {{
# german: {
# featured: featured_german_pages,
# ordinary: german_pages,
# },
# french: {
# featured: featured_french_pages,
# ordinary: french_pages,
# },
# english: {
# featured: featured_english_pages,
# ordinary: english_pages,
# },
# spanish: {
# featured: featured_spanish_pages,
# ordinary: spanish_pages
# }
# }}
}
}

before :each do
# I'm rounding the time. Ruby deals with time in nanoseconds whereas the database deals with time in microsecond
Expand Down

0 comments on commit 2c68489

Please sign in to comment.