spec/build/files/state_spec.rb in build-files-0.3.1 vs spec/build/files/state_spec.rb in build-files-0.3.2

- old
+ new

@@ -54,7 +54,15 @@ expect(state.changed).to be == [] expect(state.added).to be == [] expect(state.removed).to be == [] expect(state.missing).to be == [] end + + it "should be clean with empty inputs or outputs" do + empty = Build::Files::State.new(Build::Files::Paths::NONE) + something = Build::Files::State.new(files) + + expect(Build::Files::State.dirty?(empty, something)).to be false + expect(Build::Files::State.dirty?(something, empty)).to be false + end end end