diff --git a/.circleci/config.yml b/.circleci/config.yml index 8752594..42b3e79 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -102,7 +102,7 @@ jobs: command: dockerize -wait tcp://localhost:3306 -timeout 1m - run: name: Database setup - command: bundle exec rails db:schema:load --trace + command: bundle exec rake db:test:prepare --trace # Run rspec in parallel # ./cc-test-reporter before-build # ./cc-test-reporter after-build --coverage-input-type clover --exit-code $? diff --git a/spec/support/features/form_helpers.rb b/spec/support/features/form_helpers.rb index 7c5c55b..d31b89d 100755 --- a/spec/support/features/form_helpers.rb +++ b/spec/support/features/form_helpers.rb @@ -6,8 +6,9 @@ module Features end end - def fill_tinymce(element, contents) - page.execute_script("tinymce.get('#{element}').setContent('#{contents}')") + def fill_tinymce(element = first, contents) + page.execute_script("tinymce.editors[0].setContent('#{contents}')") + # page.execute_script("tinymce.get('#{element}').setContent('#{contents}')") end def submit(model, action)