Skip to content

Commit

Permalink
Add basic RSpec setup
Browse files Browse the repository at this point in the history
  • Loading branch information
spohlenz committed Feb 21, 2012
1 parent b46cf9a commit 8084f38
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--colour
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
source :rubygems

#gem 'rails', '3.1.0'
gem 'rails', '3.2.0'
gem 'rails', '3.2.1'

gem 'jquery-rails'
gem 'uglifier'
gem 'json', :platforms => [:ruby_18]

group :test do
gem "rspec-rails"
end

gemspec
7 changes: 7 additions & 0 deletions spec/lib/tinymce_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'spec_helper'

describe TinyMCE do
it "has a base path" do
TinyMCE.base.should eq("/assets/tinymce")
end
end
11 changes: 11 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../sandbox/config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'

# 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}

RSpec.configure do |config|
end

0 comments on commit 8084f38

Please sign in to comment.