Skip to content

Commit

Permalink
WIP: capybara not filling out form properly
Browse files Browse the repository at this point in the history
  • Loading branch information
boie0025 committed Mar 17, 2017
1 parent b7e1cc9 commit 5e4c0cb
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 12 deletions.
7 changes: 4 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ gem 'activeadmin', github: 'activeadmin'

# Test app stuff

gem 'rails', '~> 4.0'
gem 'kaminari', '= 0.15.0'
gem 'rails', '~> 5.0'
gem 'kaminari', '~> 1.0'
gem 'kaminari-mongoid'

gem 'devise'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 4.0'
gem 'sass-rails', '>= 5.0.6'
gem 'coffee-rails', '~> 4.0'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
Expand Down
4 changes: 2 additions & 2 deletions activeadmin-mongoid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ Gem::Specification.new do |gem|
gem.version = ActiveAdmin::Mongoid::VERSION
gem.license = 'MIT'

gem.add_runtime_dependency 'mongoid', ['>= 5.0']
gem.add_runtime_dependency 'mongoid', ['>= 6.0']
gem.add_runtime_dependency 'activeadmin', ['>= 1.0.0.pre5', '< 2']
gem.add_runtime_dependency 'jquery-rails'
gem.add_runtime_dependency 'sass-rails', ['>= 3.1.4', '< 5.0']
gem.add_runtime_dependency 'sass-rails', ['>= 3.1.4', '<= 5.0.6']
# gem.add_runtime_dependency 'meta_search', '~> 1.1.3'

gem.add_development_dependency 'rspec-rails', '~> 2.7'
Expand Down
2 changes: 1 addition & 1 deletion spec/features/smoke_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
fill_in 'Body', with: 'is still the best intro to rails'

# Create
binding.pry
click_on 'Create Post'

within '.attributes_table.post' do
Expand Down Expand Up @@ -213,7 +214,6 @@
posts_size.times { |n|
Post.create!(title: "Quick Brown Fox #{n}", body: 'The quick brown fox jumps over the lazy dog.', view_count: 5, admin_user: admin_user, other_user: other_user)
}

click_on 'Posts'
end

Expand Down
13 changes: 7 additions & 6 deletions test_app/Gemfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
source 'https://rubygems.org'

gem 'activeadmin', github: 'Zhomart/active_admin'
gem 'activeadmin', github: 'activeadmin'
gem 'activeadmin-mongoid', path: ',.'

# Test app stuff

gem 'rails', '~> 4.1'
gem 'rails', '~> 5.0.1'

gem 'pry'

gem 'devise'

gem 'mongoid', '~> 4.0'
gem 'kaminari', '= 0.15.0'
gem 'mongoid', '~> 6.0', require: true
gem 'kaminari', '~> 1.0'
gem 'kaminari-mongoid'
gem 'ransack'

# Gems used only for assets and not required
# in production environments by default.
gem 'sass-rails'
gem 'coffee-rails'

gem 'ransack_mongo'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier'
Expand Down
7 changes: 7 additions & 0 deletions test_app/config/mongoid.6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
test:
clients:
default:
database: activeadmin_mongoid_test
hosts:
- localhost:27017
#scope_overwrite_exception: true

0 comments on commit 5e4c0cb

Please sign in to comment.