Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added Unison.load_memory_fixtures and .load_database_fixtures

  • Loading branch information...
commit 54e82c8c7a7257cb3528f1c6c078f8f39f5e6e81 1 parent 24dec4e
Nathan Sobo authored

Showing 2 changed files with 22 additions and 0 deletions. Show diff stats Hide diff stats

  1. +8 0 lib/unison.rb
  2. +14 0 spec/unit/unison_spec.rb
8 lib/unison.rb
@@ -59,6 +59,14 @@ def load_fixtures
59 59 Relations::Set.load_fixtures
60 60 end
61 61
  62 + def load_memory_fixtures
  63 + Relations::Set.load_memory_fixtures
  64 + end
  65 +
  66 + def load_database_fixtures
  67 + Relations::Set.load_database_fixtures
  68 + end
  69 +
62 70 attr_writer :test_mode
63 71 def test_mode?
64 72 @test_mode ||= false
14 spec/unit/unison_spec.rb
@@ -22,6 +22,20 @@ module Unison
22 22 end
23 23 end
24 24
  25 + describe ".load_memory_fixtures" do
  26 + it "delegates to Relations::Set.load_memory_fixtures" do
  27 + mock.proxy(Relations::Set).load_memory_fixtures
  28 + Unison.load_memory_fixtures
  29 + end
  30 + end
  31 +
  32 + describe ".load_database_fixtures" do
  33 + it "delegates to Relations::Set.load_database_fixtures" do
  34 + mock.proxy(Relations::Set).load_database_fixtures
  35 + Unison.load_database_fixtures
  36 + end
  37 + end
  38 +
25 39 describe ".and" do
26 40 it "instantiates a Predicates::And with the passed-in arguments" do
27 41 Unison.and(predicate_1, predicate_2).should == Unison::Predicates::And.new(predicate_1, predicate_2)

0 comments on commit 54e82c8

Please sign in to comment.
Something went wrong with that request. Please try again.