mordaroso / guard-motion

Guard::Motion automatically run your RubyMotion specs (much like autotest)
MIT License
45 stars 12 forks source link

Spec dependencies #8

Closed LandonSchropp closed 11 years ago

LandonSchropp commented 11 years ago

Is there a way to get specs to load their dependencies automatically? For example, if I have:

class Foo
  def self.hello
    "hello"
  end
end
describe Foo do
  describe "#hello" do
    it "returns hello" do
      Foo.hello.should == "hello"
    end
  end
end

Is there a way to run guard so I don't have to explicitly require Foo?

LandonSchropp commented 11 years ago

Never mind. I had my Guardfile configured with "rspec" instead of "motion". My bad.