require "spec_helper"

module LotteryPicker
  describe Drawing do
    describe "#draw" do
      let(:draw) { LotteryPicker::Drawing.new.draw }

      it "returns an array" do
        expect(draw).to be_a(Array)
      end

      it "returns an array with 6 elements" do
        expect(draw.size).to eq(6)
      end

      it "each element is an integer" do
        draw.each do |drawing|
          expect(drawing).to be_a(Integer)
        end
      end

      it "each element is less than 49" do
        draw.each do |drawing|
          expect(drawing).to be < 49
        end
      end
    end
  end
end

require "spec_helper"

module LotteryPicker
  describe Drawing do
    describe "#draw" do
      let(:draw) { LotteryPicker::Drawing.new.draw }

      it "returns an array" do
        expect(draw).to be_a(Array)
      end

      it "returns an array with 6 elements" do
        expect(draw.size).to eq(6)
      end

      it "each element is an integer" do
        draw.each do |drawing|
          expect(drawing).to be_a(Integer)
        end
      end

      it "each element is less than 49" do
        draw.each do |drawing|
          expect(drawing).to be < 49
        end
      end

      it "each element is greater than 0" do
        draw.each do |drawing|
          expect(drawing).to be > 0
        end
      end
    end
  end
end

Add test for intergers greater than 0
Add test for intergers greater than 0
