Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added Gemfile

  • Loading branch information...
commit bbab715faac10960ca41107e2b38d7efd7ee8ef4 1 parent 22ccaf4
@p8 p8 authored
View
8 Gemfile
@@ -0,0 +1,8 @@
+# A sample Gemfile
+source "http://rubygems.org"
+
+group :test do
+ gem "rspec"
+ gem "activerecord", "~>2.3.5"
+ gem "sqlite3-ruby"
+end
View
26 Gemfile.lock
@@ -0,0 +1,26 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activerecord (2.3.10)
+ activesupport (= 2.3.10)
+ activesupport (2.3.10)
+ diff-lcs (1.1.2)
+ rspec (2.0.1)
+ rspec-core (~> 2.0.1)
+ rspec-expectations (~> 2.0.1)
+ rspec-mocks (~> 2.0.1)
+ rspec-core (2.0.1)
+ rspec-expectations (2.0.1)
+ diff-lcs (>= 1.1.2)
+ rspec-mocks (2.0.1)
+ rspec-core (~> 2.0.1)
+ rspec-expectations (~> 2.0.1)
+ sqlite3-ruby (1.3.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ activerecord (~> 2.3.5)
+ rspec
+ sqlite3-ruby
View
1  autotest/discover.rb
@@ -0,0 +1 @@
+Autotest.add_discovery { "rspec2" }
View
8 spec/active_record_spec.rb
@@ -1,11 +1,13 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
-require 'rubygems'
-gem 'activerecord', '~> 2.3.5'
+require "rubygems"
+require "bundler"
+Bundler.require
+#Bundler.setup(:test)#, :activerecord)
require 'active_record'
require 'examples/user'
-ActiveRecord::Base.logger = Logger.new STDOUT
+#ActiveRecord::Base.logger = Logger.new STDOUT
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :dbfile => ":memory:")
def setup_db
View
4 spec/spec.opts
@@ -1,3 +1,3 @@
--color
---debugger
---backtrace
+#--debugger
+--backtrace
View
7 spec/spec_helper.rb
@@ -1,13 +1,10 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'simple_state_machine'
-require 'spec'
-require 'spec/autorun'
+#require 'spec'
+#require 'spec/autorun'
require 'examples/conversation'
require 'examples/lamp'
require 'examples/traffic_light'
-Spec::Runner.configure do |config|
-
-end
Please sign in to comment.
Something went wrong with that request. Please try again.