moving features to min integrations
This commit is contained in:
@ -1,11 +0,0 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.feature "Changes", type: :feature do
|
||||
describe "GET /changes" do
|
||||
it "returns http success" do
|
||||
# visit "/merged/changes/index"
|
||||
# expect(page).to have_title("Deletions")
|
||||
# expect(page).to have_text("Additions")
|
||||
end
|
||||
end
|
||||
end
|
@ -1,17 +0,0 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.feature "Images", type: :feature do
|
||||
describe "GET /images" do
|
||||
it "returns http success" do
|
||||
visit "/merged/images"
|
||||
expect(page).to have_title("Dummy")
|
||||
expect(page).to have_text("Pages")
|
||||
end
|
||||
it "has picures" , js: true do
|
||||
expexted_num = Merged::Image.count
|
||||
visit "/merged/images"
|
||||
found= find_all(".image_box").count
|
||||
expect(found).to be expexted_num
|
||||
end
|
||||
end
|
||||
end
|
@ -1,23 +0,0 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.feature "Pages", type: :feature do
|
||||
describe "GET /pages" do
|
||||
it "returns http success" do
|
||||
visit "/merged/pages"
|
||||
expect(page).to have_title("Dummy")
|
||||
expect(page).to have_text("Pages")
|
||||
end
|
||||
|
||||
it "has an index page" do
|
||||
visit "/merged/pages"
|
||||
click_on ("index")
|
||||
end
|
||||
|
||||
it "edit page works " do
|
||||
visit "/merged/pages"
|
||||
within("#index") do
|
||||
click_on ("Edit")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
@ -1,31 +0,0 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.feature "Sections", type: :feature do
|
||||
describe "index page" do
|
||||
it "returns http success" do
|
||||
visit "/merged/pages"
|
||||
click_on ("index")
|
||||
expect(page).to have_text("index")
|
||||
expect(page).to have_text("Section 1")
|
||||
end
|
||||
end
|
||||
describe "show page" do
|
||||
it "returns http success" do
|
||||
visit "/merged/pages"
|
||||
click_on ("index")
|
||||
within("#section_31") do
|
||||
find_link("Edit").click
|
||||
end
|
||||
end
|
||||
|
||||
describe "show page" do
|
||||
it "returns http success" do
|
||||
visit "/merged/pages"
|
||||
click_on ("index")
|
||||
within("#section_31") do
|
||||
find_link("Edit").click
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
@ -1,11 +0,0 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.feature "Styles", type: :feature do
|
||||
describe "GET /styles" do
|
||||
it "returns http success" do
|
||||
visit "/merged/styles/index"
|
||||
expect(page).to have_title("Dummy")
|
||||
expect(page).to have_text("Styles")
|
||||
end
|
||||
end
|
||||
end
|
@ -1,12 +0,0 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.feature "View", type: :feature do
|
||||
describe "Check rendering" do
|
||||
|
||||
it "returns http successfor all pages" do
|
||||
Merged::Page.all.each do |page|
|
||||
visit "/" + page.name
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user