Removal of react.js
parent
3c408a4a47
commit
1a1d81cb1c
3
Gemfile
3
Gemfile
|
@ -32,9 +32,6 @@ source 'https://rails-assets.org' do
|
|||
gem 'rails-assets-sio-client'
|
||||
end
|
||||
|
||||
gem 'react-rails', '~> 1.0'
|
||||
gem 'browserify-rails'
|
||||
|
||||
group :development, :test do
|
||||
gem 'pry'
|
||||
gem 'factory_girl_rails'
|
||||
|
|
15
Gemfile.lock
15
Gemfile.lock
|
@ -77,13 +77,7 @@ GEM
|
|||
arel (5.0.1.20140414130214)
|
||||
arrayfields (4.9.2)
|
||||
ast (2.0.0)
|
||||
babel-source (5.8.23)
|
||||
babel-transpiler (0.7.0)
|
||||
babel-source (>= 4.0, < 6)
|
||||
execjs (~> 2.0)
|
||||
bcrypt (3.1.10)
|
||||
browserify-rails (1.1.0)
|
||||
railties (>= 4.0.0, < 5.0)
|
||||
bson (2.3.0)
|
||||
builder (3.2.2)
|
||||
cane (2.6.2)
|
||||
|
@ -269,13 +263,6 @@ GEM
|
|||
thor (>= 0.18.1, < 2.0)
|
||||
rainbow (2.0.0)
|
||||
rake (10.4.2)
|
||||
react-rails (1.2.0)
|
||||
babel-transpiler (>= 0.7.0)
|
||||
coffee-script-source (~> 1.8)
|
||||
connection_pool
|
||||
execjs
|
||||
rails (>= 3.2)
|
||||
tilt
|
||||
redcard (1.1.0)
|
||||
reek (1.6.6)
|
||||
parser (~> 2.2.0.pre.7)
|
||||
|
@ -362,7 +349,6 @@ PLATFORMS
|
|||
|
||||
DEPENDENCIES
|
||||
active_model_serializers (~> 0.8.3)
|
||||
browserify-rails
|
||||
capybara
|
||||
capybara-angular
|
||||
codeclimate-test-reporter
|
||||
|
@ -393,7 +379,6 @@ DEPENDENCIES
|
|||
rails-assets-pickadate!
|
||||
rails-assets-sio-client!
|
||||
rails_12factor
|
||||
react-rails (~> 1.0)
|
||||
rspec
|
||||
rspec-rails
|
||||
sass-rails!
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
//= require lodash
|
||||
//= require jquery
|
||||
//= require react
|
||||
//= require react_ujs
|
||||
$(function(){
|
||||
// Append Rails CSRF token to requests.
|
||||
var token = $( 'meta[name="csrf-token"]' ).attr( 'content' );
|
|
@ -10,7 +10,7 @@ describe 'User Session' do
|
|||
expect(page).to have_content('Signed in successfully.')
|
||||
end
|
||||
|
||||
it 'edits user settings' do
|
||||
it 'edits user settings', js: true do
|
||||
user = FactoryGirl.create(:user)
|
||||
sign_in_as user
|
||||
visit edit_user_registration_path
|
||||
|
@ -19,6 +19,7 @@ describe 'User Session' do
|
|||
fill_in 'user_email', with: new_email
|
||||
fill_in 'user_current_password', with: user.password
|
||||
click_button 'Update'
|
||||
binding.pry
|
||||
expect(page).to have_content('Your account has been updated successfully.')
|
||||
expect(user.reload.email).to eq(new_email)
|
||||
end
|
||||
|
@ -26,6 +27,8 @@ describe 'User Session' do
|
|||
it 'logs the user out' do
|
||||
user = FactoryGirl.create(:user)
|
||||
sign_in_as(user)
|
||||
save_and_open_page
|
||||
binding.pry
|
||||
click_link 'Sign out'
|
||||
expect(page).to have_content('Signed out successfully.')
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue