spec/support/models/star_gazer.rb in arstotzka-1.1.0 vs spec/support/models/star_gazer.rb in arstotzka-1.2.0

- old
+ new

@@ -9,6 +9,12 @@ attr_reader :json def initialize(json = {}) @json = json end + + private + + def only_yellow(stars) + stars.select(&:yellow?) + end end