Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add basic RSpec setup

  • Loading branch information...
commit 8084f386d7769ef232e2a40f4682be46583bccc5 1 parent b46cf9a
Sam Pohlenz authored
1  .rspec
View
@@ -0,0 +1 @@
+--colour
6 Gemfile
View
@@ -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 spec/lib/tinymce_spec.rb
View
@@ -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 spec/spec_helper.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.