test/unit/ruby_feature_test.rb in sprout-1.0.9.pre vs test/unit/ruby_feature_test.rb in sprout-1.0.11.pre

- old
+ new

@@ -86,9 +86,21 @@ should "allow load with collection of names" do FakePlugin.register(create_item) assert_not_nil FakePlugin.load [:bar, :baz, :foo] end + + should "find platform-specific remote file target" do + osx = create_item(:platform => :osx) + linux = create_item(:platform => :linux) + FakePlugin.register osx + FakePlugin.register linux + as_a_mac_system do + result = FakePlugin.load :foo + assert_equal osx, result + end + end + end private def create_item options={}