Skip to content

Commit

Permalink
Merge pull request #22 from projecthydra/test_edge_hydra
Browse files Browse the repository at this point in the history
Test against edge hydra-head
  • Loading branch information
dchandekstark committed Jan 2, 2014
2 parents 58357b5 + 0b97914 commit 2d0e414
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 16 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 1.9.3

gemfile:
- gemfiles/edge-hydra-head.gemfile
- gemfiles/gemfile.rails3
- gemfiles/gemfile.rails4

notifications:
irc: "irc.freenode.org#projecthydra"
irc: "irc.freenode.org#projecthydra"
13 changes: 5 additions & 8 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,11 @@ task :setup do
end
end

desc "Run the spec tests"
task :spec => :setup do
here = File.expand_path("../", __FILE__)
Dir.chdir(dummy) do
Bundler.with_clean_env do
sh "bundle exec rspec --color -I#{here}/spec #{here}/spec"
end
end
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec => :setup) do |t|
t.pattern = 'spec/**/*_spec.rb'
end


task :default => :spec
18 changes: 18 additions & 0 deletions gemfiles/edge-hydra-head.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
source "https://rubygems.org"

gemspec :path=>"../"

gem 'rails', '~> 4.0.0'

gem 'active-fedora', github: 'projecthydra/active_fedora'
gem 'hydra-head', github: 'projecthydra/hydra-head'

group :test do
gem "turbolinks"
gem "jquery-rails"
gem "bootstrap-sass"
gem 'devise'
gem 'devise-guests'
gem 'blacklight'
end

2 changes: 2 additions & 0 deletions gemfiles/gemfile.rails3
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ gemspec :path=>"../"

gem 'rails', '~> 3.2'

gem 'hydra'

group :test do
gem 'devise'
gem 'devise-guests'
Expand Down
5 changes: 5 additions & 0 deletions gemfiles/gemfile.rails4
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ gemspec :path=>"../"

gem 'rails', '~> 4.0.0'

gem 'hydra'

group :test do
gem "turbolinks"
gem "jquery-rails"
gem "bootstrap-sass"
gem 'devise'
gem 'devise-guests'
gem 'blacklight'
Expand Down
3 changes: 2 additions & 1 deletion hydra-editor.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Gem::Specification.new do |s|

s.add_development_dependency "sqlite3"
s.add_development_dependency "rspec-rails"
s.add_development_dependency "factory_girl_rails"
s.add_development_dependency "capybara"
s.add_development_dependency "devise"
s.add_development_dependency "hydra"
s.add_development_dependency "hydra-head"
end
3 changes: 0 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
require 'rspec/autorun'
require 'factory_girl_rails'

FactoryGirl.definition_file_paths = ["#{File.dirname(__FILE__)}/factories"]
FactoryGirl.find_definitions

Rails.backtrace_cleaner.remove_silencers!
# Load support files

Expand Down
6 changes: 4 additions & 2 deletions spec/support/lib/generators/test_app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ class TestAppGenerator < Rails::Generators::Base

def configure

gem 'hydra', '6.1.0'
gem 'hydra-head'
gem 'hydra-editor', path: '../../'
gem "factory_girl_rails"
gem 'capybara'

generate "hydra:install"
generate "blacklight --devise"
generate "hydra:head -f"

rake "db:migrate"
rake "db:test:prepare"
Expand All @@ -19,6 +20,7 @@ def configure
insert_into_file "config/routes.rb", :after => '.draw do' do
"\n mount HydraEditor::Engine => \"/\"\n"
end
remove_file "spec/factories/users.rb" # generated by devise
remove_file "spec/models/user_spec.rb" # generated by devise

end
Expand Down

0 comments on commit 2d0e414

Please sign in to comment.