Sha256: d8f5eb7697e9bdfe94bd6225021e48f01a538fec7801ee5cdf6ab07b63e5a3b1

Contents?: true

Size: 673 Bytes

Versions: 1

Compression:

Stored size: 673 Bytes

Contents

describe MessageBox do
  context "Class Method .show" do
    subject {
      MessageBox.show(".show", "Class method called.", 0x40)
    }
    it { should eq 1 }
  end

  context "Plain MessageBox (no style specified)" do
    subject {
      MessageBox.new("Plain MessageBox", "This is plain message box.").show
    }
    it { should eq 1 }
  end

  describe MessageBox::Warn do
    subject {
      MessageBox::Warn.new("Warning MessageBox", "Warning!").show
    }
    it { should eq 1 }
  end

  describe MessageBox::YesNo do
    subject {
      MessageBox::YesNo.new("YesNo MessageBox", "This ok?").show
    }
    it { should eq 6 }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
messagebox-0.1.0 spec/messagebox_spec.rb