This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Before('@no-txn,@selenium,@culerity,@celerity') do | |
# I added this block and changed to transaction because @javascript was truncating most of my tables | |
#DatabaseCleaner.strategy = :truncation, {:except => %w[groups]} | |
DatabaseCleaner.strategy = :truncation | |
end | |
Before('@javascript') do | |
#DatabaseCleaner.strategy = :truncation, {:except => %w[groups categories category_types content_types content_type_groups bcms_my401k_layouts]} | |
DatabaseCleaner.strategy = :transaction | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Content Pages | |
Editors should be able to manage their own pages | |
Background: | |
# make sure user is logged out | |
Given I am a guest | |
When I visit "/my401k/plan_sponsor/create_new_content" | |
And login as a plan sponsor | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Content Pages | |
Editors should be able to manage their own pages | |
Background: | |
Given I am a guest | |
... | |
@javascript | |
Scenario: An editor saves the selected category and navigates next to select the desired lay | |
When a registered user visits "/my401k/plan_sponsor/create_new_content" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# db/my401k.seeds.rb | |
require 'cms/data_loader' | |
extend Cms::DataLoader | |
if(Cms::Category.count == 0) | |
my401k_product_type = create_category_type(:guest, :name => 'My401k Product') | |
create_category(:about_plan, :name => 'About Plan', :category_type => my401k_product_type) | |
create_category(:manage_account, :name => 'Manage Account', :category_type => my401k_product_type) | |
create_category(:helpful_resources, :name => 'Helpful Resources', :category_type => my401k_product_type) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'spork' | |
#uncomment the following line to use spork with the debugger | |
#require 'spork/ext/ruby-debug' | |
... | |
require File.expand_path("./config/environment.rb") | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/routes.rb | |
BrowsercmsDemo::Application.routes.draw do | |
... | |
mount_bcms_my401k | |
mount_browsercms | |
end | |
... | |
BcmsMy401k::Engine.routes.draw do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if git rev-parse --verify HEAD >/dev/null 2>&1; then | |
against=HEAD | |
else | |
# put the first changeset hash value in your project here (I think) | |
against=facf87a3fa1c853a7dd8dde8cba32e1fc8fde3ea | |
fi | |
for FILE in `git diff-index --name-status $against -- | cut -c3-` ; do |
NewerOlder