Skip to content
Permalink
Browse files

Use `--require spec_helper` option

Don't Repeat Yourself.
  • Loading branch information...
koic committed Dec 9, 2015
1 parent ceb54b1 commit f712fefea515c8c60dbdd50779e86a767e4c9600
Showing with 2 additions and 122 deletions.
  1. +2 −1 .rspec
  2. +0 −3 spec/e2e/active_model_spec.rb
  3. +0 −2 spec/e2e/active_rel/persistence/query_factory_spec.rb
  4. +0 −2 spec/e2e/active_rel/unpersisted_spec.rb
  5. +0 −2 spec/e2e/active_rel_spec.rb
  6. +0 −2 spec/e2e/association_dependency_spec.rb
  7. +0 −2 spec/e2e/association_proxy_spec.rb
  8. +0 −2 spec/e2e/attributes_spec.rb
  9. +0 −1 spec/e2e/basic_model_spec.rb
  10. +0 −2 spec/e2e/has_many_spec.rb
  11. +0 −2 spec/e2e/has_one_spec.rb
  12. +0 −2 spec/e2e/id_property_spec.rb
  13. +0 −3 spec/e2e/inheritance_spec.rb
  14. +0 −3 spec/e2e/label_spec.rb
  15. +0 −2 spec/e2e/lint_spec.rb
  16. +0 −2 spec/e2e/migration_spec.rb
  17. +0 −2 spec/e2e/neo4j-core_spec.rb
  18. +0 −2 spec/e2e/node_wrapping_spec.rb
  19. +0 −2 spec/e2e/persistence_spec.rb
  20. +0 −2 spec/e2e/property_management_spec.rb
  21. +0 −2 spec/e2e/queries_spec.rb
  22. +0 −2 spec/e2e/query_proxy_methods_spec.rb
  23. +0 −1 spec/e2e/query_spec.rb
  24. +0 −1 spec/e2e/railtie_spec.rb
  25. +0 −2 spec/e2e/reflections_spec.rb
  26. +0 −2 spec/e2e/rels_spec.rb
  27. +0 −2 spec/e2e/schema/operation_spec.rb
  28. +0 −2 spec/e2e/scope_spec.rb
  29. +0 −2 spec/e2e/shared/query_factory_spec.rb
  30. +0 −2 spec/e2e/transaction_spec.rb
  31. +0 −2 spec/e2e/typecasting_spec.rb
  32. +0 −2 spec/e2e/unpersisted_association_spec.rb
  33. +0 −2 spec/e2e/validation_uniqueness_spec.rb
  34. +0 −2 spec/e2e/wrapped_transactions_spec.rb
  35. +0 −3 spec/integration/label_spec.rb
  36. +0 −2 spec/integration/node_persistence_spec.rb
  37. +0 −2 spec/integration/orm_adapter/neo4j_spec.rb
  38. +0 −2 spec/integration/type_converters/type_converters_spec.rb
  39. +0 −2 spec/unit/active_node/has_n/association/rel_wrapper_spec.rb
  40. +0 −2 spec/unit/active_node/has_n/association_spec.rb
  41. +0 −2 spec/unit/active_node/labels_spec.rb
  42. +0 −2 spec/unit/active_node/persistance_spec.rb
  43. +0 −2 spec/unit/active_node/query/query_proxy_spec.rb
  44. +0 −2 spec/unit/active_node/query_spec.rb
  45. +0 −2 spec/unit/active_node/validation_spec.rb
  46. +0 −2 spec/unit/active_rel/active_rel_spec.rb
  47. +0 −2 spec/unit/active_rel/callbacks_spec.rb
  48. +0 −2 spec/unit/active_rel/initialize_spec.rb
  49. +0 −2 spec/unit/active_rel/property_spec.rb
  50. +0 −2 spec/unit/active_rel/rel_wrapper_spec.rb
  51. +0 −2 spec/unit/active_rel/related_node_spec.rb
  52. +0 −2 spec/unit/config_spec.rb
  53. +0 −2 spec/unit/load_hooks_spec.rb
  54. +0 −2 spec/unit/paginated_spec.rb
  55. +0 −2 spec/unit/schema/operation_spec.rb
  56. +0 −2 spec/unit/shared/filtered_hash_spec.rb
  57. +0 −2 spec/unit/shared/identity_spec.rb
  58. +0 −2 spec/unit/shared/persistence_spec.rb
  59. +0 −2 spec/unit/shared/property_spec.rb
  60. +0 −2 spec/unit/shared/rel_type_converters_spec.rb
  61. +0 −2 spec/unit/wrapper_spec.rb
3 .rspec
@@ -1,2 +1,3 @@
--color
--tty
--tty
--require spec_helper
@@ -1,6 +1,3 @@
require 'spec_helper'


# class ExtendedIceLolly < IceLolly
# property :extended_property
# end
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveRel::Persistence::QueryFactory do
before do
stub_active_node_class('FromClass') do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'ActiveRel unpersisted handling' do
before(:each) do
clear_model_memory_caches
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'ActiveRel' do
before(:each) do
clear_model_memory_caches
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'association dependent delete/destroy' do
# In these tests, we mimic an event management system. It has a few requirements:
#
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'Association Proxy' do
before do
clear_model_memory_caches
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveNode do
class SimpleClass
include Neo4j::ActiveNode
@@ -1,4 +1,3 @@
require 'spec_helper'
require 'shared_examples/new_model'
require 'shared_examples/loadable_model'
require 'shared_examples/saveable_model'
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'has_many' do
before(:each) do
clear_model_memory_caches
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'has_one' do
before(:each) do
delete_db
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveNode::IdProperty do
before do
Neo4j::Config.delete(:id_property)
@@ -1,6 +1,3 @@
require 'spec_helper'


describe 'Inheritance', type: :e2e do
before(:each) do
delete_db
@@ -1,6 +1,3 @@
require 'spec_helper'


describe 'Neo4j::ActiveNode' do
let(:clazz) do
UniqueClass.create do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'ActiveModel::Lint' do
class LintClass
include Neo4j::ActiveNode
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'migration tasks' do
require 'neo4j/migration'

@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'works well together with Neo4j::Core' do
let(:clazz) do
UniqueClass.create do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'Node Wrapping' do
before(:each) do
clear_model_memory_caches
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveNode do
before(:each) do
stub_active_node_class('Person')
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'declared property classes' do
describe Neo4j::Shared::DeclaredProperty do
before do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'Neo4j::ActiveNode#find' do
let(:clazz) do
UniqueClass.create do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'query_proxy_methods' do
# goofy names to differentiate from same classes used elsewhere
before(:each) do
@@ -1,4 +1,3 @@
require 'spec_helper'
require 'set'


@@ -1,4 +1,3 @@
require 'spec_helper'
require 'ostruct'

module Rails
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'reflections' do
module ReflectionsSpecs
class RelClass; end
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'Neo4j::ActiveNode#rels' do
before(:all) do
clazz = UniqueClass.create do
@@ -1,5 +1,3 @@
require 'spec_helper'

module Neo4j::Schema
describe 'operation classes' do
it_behaves_like 'schema operation create/drop', ExactIndexOperation, UniqueConstraintOperation
@@ -1,5 +1,3 @@
require 'spec_helper'

# module Neo4j::ActiveNode::Scope

describe 'Neo4j::NodeMixin::Scope' do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::Shared::QueryFactory do
before do
stub_active_node_class('FactoryFromClass') do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'Neo4j::Transaction' do
context 'reading has_one relationships for Neo4j::Server' do
let(:clazz) do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'custom type conversion' do
before(:each) do
clear_model_memory_caches
@@ -1,5 +1,3 @@
require 'spec_helper'

def save_and_expect_rel!
proc do
chris.save
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveNode::Validations do
before(:each) do
delete_db
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'wrapped nodes in transactions' do
before(:each) do
clear_model_memory_caches
@@ -1,6 +1,3 @@
require 'spec_helper'


# tests = Proc.new do
describe 'Labels' do
before(:all) do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'Neo4j::ActiveNode' do
class MyThing
include Neo4j::ActiveNode
@@ -1,5 +1,3 @@
require 'spec_helper'

orm_adapter_path = `bundle show orm_adapter`.chomp
require File.join(orm_adapter_path, 'spec/orm_adapter/example_app_shared')

@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::Shared::TypeConverters do
describe 'converters' do
it 'has converters for DateTime' do
@@ -1,5 +1,3 @@
require 'spec_helper'

class Neo4j::ActiveNode::HasN::Association
describe RelWrapper do
let(:type) { :FRIENDS_WITH }
@@ -1,5 +1,3 @@
require 'spec_helper'

class Default
end

@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveNode::Labels do
before(:all) do
@prev_wrapped_classes = Neo4j::ActiveNode::Labels._wrapped_classes
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveNode::Persistence do
let(:node) { double('a persisted node', exist?: true) }

@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveNode::Query::QueryProxy do
let(:qp) { Neo4j::ActiveNode::Query::QueryProxy.new(Object) }
let(:session) { double('A session') }
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveNode::Query do
let(:session) { double('Session') }

@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveNode::Validations do
let(:node) { double('a persisted node') }
before(:each) { clazz.any_instance.stub(:_persisted_obj).and_return(nil) }
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveRel do
let(:clazz) do
Class.new do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveRel::Callbacks do
after(:all) do
[:CallbackBar, :CallbackFoo].each do |s|
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveRel::Initialize do
let(:clazz) do
Class.new do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveRel::Property do
let(:session) { double('Session') }

@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::Relationship::Wrapper do
class RelClass; end

@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::ActiveRel::RelatedNode do
class RelatedNode < Neo4j::ActiveRel::RelatedNode; end

@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::Config do
describe 'default_file' do
it 'should exist' do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'load hooks' do
require 'active_support'

@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::Paginated do
describe 'initialize' do
it 'sets instance variables @items, @total, @current_page' do
@@ -1,5 +1,3 @@
require 'spec_helper'

module Neo4j::Schema
describe 'Operation classes' do
let(:label_double) { double('An instance of Neo4j::Label') }
@@ -1,5 +1,3 @@
require 'spec_helper'

module Neo4j::Shared
describe FilteredHash do
let(:base) { {first: :foo, second: :bar, third: :baz, fourth: :buzz} }
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::Shared::Identity do
let(:clazz) do
Class.new do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::Shared::Persistence do
before do
stub_const('MyModel', Class.new do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::Shared::Property do
let(:clazz) { Class.new { include Neo4j::Shared::Property } }

@@ -1,5 +1,3 @@
require 'spec_helper'

describe 'rel type conversion' do
let(:clazz) do
Class.new do
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Neo4j::Node::Wrapper do
let(:wrapper) do
obj = Object.new

0 comments on commit f712fef

Please sign in to comment.
You can’t perform that action at this time.