Sha256: bd10a2f0db25bdb20e39091b58d978a4b4850baa05b4dec3c8f19c35b91359bb
Contents?: true
Size: 534 Bytes
Versions: 10
Compression:
Stored size: 534 Bytes
Contents
require 'spec_helper' describe Sinatra::Errors do subject(:klass) { Class.new.extend(Sinatra::Errors) } before(:each) { subject.setup_errors } context "#setup_errors" do it { should have_instance_variable(:errors).with([]) } end context "#try" do before(:each) do subject.try { raise 'your hands' } end it { should have_instance_variable(:errors).with(['your hands']) } end context "#errors" do it { should respond_to(:errors) } it { should have_instance_variable(:errors) } end end
Version data entries
10 entries across 10 versions & 1 rubygems