This file contains hidden or 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 = { | |
:use_adapter => :data_mapper | |
} | |
# Ideally I would like to be able to mix in ActiveRecord or DataMapper | |
# to get a ORM layer. Can't get ActiveRecord to work because it inherits | |
# rather then mixes in | |
class Article | |
This file contains hidden or 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
jokelly@pinkbox:~/development/apps/pinkbox/management$ rake recreate_dbs config:everything_runs_locally | |
(in /home/jokelly/development/apps/pinkbox/management) | |
localgems Gems | |
mkdir -p /home/jokelly/development/apps/pinkbox/management/etc/localgems/gems | |
WARNING: did not load management:db tasks because pinkbox_common gem was not found in | |
jokelly@pinkbox:~/development/apps/pinkbox/management$ |
This file contains hidden or 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
--- | |
title: RubySlippers, the smartest blogging engine in all of Oz! | |
date: 21/06/2011 | |
tags: announcements | |
I just wanted to shout a quick _hello world_. Nothing more to read here. | |
~ |
This file contains hidden or 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
~/development/apps/pinkbox/management |develop: 4989m| $ cd $PINKBOX_ROOT/management ; rake startup --trace | |
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+) | |
localgems Gems | |
mkdir -p /Users/james/development/apps/pinkbox/management/etc/localgems/gems | |
livegems Gems | |
WARNING: Global access to Rake DSL methods is deprecated. Please include | |
... Rake::DSL into classes and modules which use the Rake DSL methods. | |
WARNING: DSL method Module#mkdir_p called at /Users/james/development/apps/pinkbox/management/dev_util/tasks/rake_helper.rb:96:in `add_gems' | |
mkdir -p /Users/james/development/apps/pinkbox/management/etc/livegems/gems | |
** Invoke startup (first_time) |
This file contains hidden or 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
RAILS_ENV=test rake management:db:schema:load --trace(in /Users/james/development/clients/importal/pinkbox/management) | |
localgems Gems | |
mkdir -p /Users/james/development/clients/importal/pinkbox/management/etc/localgems/gems | |
livegems Gems | |
mkdir -p /Users/james/development/clients/importal/pinkbox/management/etc/livegems/gems | |
** Invoke management:db:schema:load (first_time) | |
** Invoke gems (first_time) | |
** Execute gems | |
localgems Gems | |
mkdir -p /Users/james/development/clients/importal/pinkbox/management/etc/localgems/gems |
This file contains hidden or 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
~/development/clients/importal/pinkbox/management |develop: --| $ rake all_tests --trace(in /Users/james/development/clients/importal/pinkbox/management) | |
localgems Gems | |
mkdir -p /Users/james/development/clients/importal/pinkbox/management/etc/localgems/gems | |
livegems Gems | |
mkdir -p /Users/james/development/clients/importal/pinkbox/management/etc/livegems/gems | |
** Invoke all_tests (first_time) | |
** Execute all_tests | |
(in /Users/james/development/clients/importal/pinkbox/management) | |
localgems Gems | |
mkdir -p /Users/james/development/clients/importal/pinkbox/management/etc/localgems/gems |
This file contains hidden or 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 'faker' | |
require "#{Rails.root}/app/lib/railstar_lib/data/masked_field" | |
require "#{Rails.root}/spec/support/factory_sequences" | |
include RailstarLib::Data | |
Factory.define :user do |u| | |
u.name { Faker::Name.name } | |
u.email { Factory.next(:email) } | |
u.password "password" |
This file contains hidden or 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
class UserSession < Authlogic::Session::Base | |
extend ActiveModel::Naming | |
end |
This file contains hidden or 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 'spec_helper' | |
describe "Tasks" do | |
before(:each) do | |
login_as(:developer) | |
end | |
describe "GET /tasks" do | |
it "renders" do | |
visit tasks_path |
This file contains hidden or 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
# This file is copied to spec/ when you run 'rails generate rspec:install' | |
ENV["RAILS_ENV"] ||= 'test' | |
require File.expand_path("../../config/environment", __FILE__) | |
require 'rspec/rails' | |
require 'authlogic/test_case' | |
# Requires supporting ruby files with custom matchers and macros, etc, | |
# in spec/support/ and its subdirectories. | |
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} |