mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Refactor stylesheets
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
require 'rails_helper'
|
||||
|
||||
# Specs in this file have access to a helper object that includes
|
||||
# the PostsHelper. For example:
|
||||
#
|
||||
# describe PostsHelper do
|
||||
# describe "string concat" do
|
||||
# it "concats two strings with spaces" do
|
||||
# expect(helper.concat_strings("this","that")).to eq("this that")
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
RSpec.describe PostsHelper, type: :helper do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
||||
@@ -46,9 +46,9 @@ feature 'roadmap', type: :system, js: true do
|
||||
within roadmap_columns do
|
||||
expect(page).to have_selector(roadmap_column, count: 2)
|
||||
expect(page).to have_selector(column_header, count: 2)
|
||||
expect(page).to have_content(post_status_1.name)
|
||||
expect(page).to have_content(post_status_2.name)
|
||||
expect(page).not_to have_content(post_status_3.name)
|
||||
expect(page).to have_content(/#{post_status_1.name}/i)
|
||||
expect(page).to have_content(/#{post_status_2.name}/i)
|
||||
expect(page).not_to have_content(/#{post_status_3.name}/i)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -57,9 +57,9 @@ feature 'roadmap', type: :system, js: true do
|
||||
|
||||
within roadmap_columns do
|
||||
expect(page).to have_selector(post_link, count: 2)
|
||||
expect(page).to have_content(post1.title)
|
||||
expect(page).to have_content(post2.title)
|
||||
expect(page).not_to have_content(post3.title)
|
||||
expect(page).to have_content(/#{post1.title}/)
|
||||
expect(page).to have_content(/#{post2.title}/)
|
||||
expect(page).not_to have_content(/#{post3.title}/)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -67,9 +67,9 @@ feature 'roadmap', type: :system, js: true do
|
||||
visit root_path
|
||||
|
||||
within roadmap_columns do
|
||||
expect(page).to have_content(post1.board.name)
|
||||
expect(page).to have_content(post2.board.name)
|
||||
expect(page).not_to have_content(post3.board.name)
|
||||
expect(page).to have_content(/#{post1.board.name}/i)
|
||||
expect(page).to have_content(/#{post2.board.name}/i)
|
||||
expect(page).not_to have_content(/#{post3.board.name}/i)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user