Commit 500f85a3 by vulehuan

rspec: change some test email

parent 26349c35
...@@ -6,7 +6,7 @@ describe Product do ...@@ -6,7 +6,7 @@ describe Product do
name: "Product category name" name: "Product category name"
) )
@product_category.save @product_category.save
@user = User.new(name: "Example User", email: "user@example.com", password: "foobar", password_confirmation: "foobar") @user = User.new(name: "Example User", email: "user_product@example.com", password: "foobar", password_confirmation: "foobar")
@user.save @user.save
@product = Product.new( @product = Product.new(
name: "Example User", name: "Example User",
......
...@@ -2,7 +2,7 @@ require 'spec_helper' ...@@ -2,7 +2,7 @@ require 'spec_helper'
describe User do describe User do
before do before do
@user = User.new(name: "Example User", email: "user@example.com", password: "foobar", password_confirmation: "foobar") @user = User.new(name: "Example User", email: "user_local@example.com", password: "foobar", password_confirmation: "foobar")
end end
subject { @user } subject { @user }
......
...@@ -37,7 +37,7 @@ describe "UserPages" do ...@@ -37,7 +37,7 @@ describe "UserPages" do
describe "with valid information" do describe "with valid information" do
before do before do
fill_in "Name", with: "Example user" fill_in "Name", with: "Example user"
fill_in "Email", with: "user@example.com" fill_in "Email", with: "user_form_test@example.com"
fill_in "Password", with: "123456" fill_in "Password", with: "123456"
fill_in "Confirm Password", with: "123456" fill_in "Confirm Password", with: "123456"
end end
...@@ -48,7 +48,7 @@ describe "UserPages" do ...@@ -48,7 +48,7 @@ describe "UserPages" do
describe "after saving the user" do describe "after saving the user" do
before { click_button submit } before { click_button submit }
let(:user) { User.find_by(email: "user@example.com") } let(:user) { User.find_by(email: "user_form_test@example.com") }
it { should have_link('Logout') } it { should have_link('Logout') }
it { should have_title(user.name) } it { should have_title(user.name) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment