Sha256: 52a7b901233d368e3d4ef9cfd2b930abcf6c77dc1de6ceb0ef61eec1c1f0068e
Contents?: true
Size: 415 Bytes
Versions: 22
Compression:
Stored size: 415 Bytes
Contents
require "spec_helper" describe PagSeguro::Bank do let(:bank) { PagSeguro::Bank.new(:itau) } subject { bank } it { should respond_to(:name) } describe 'presence validations' do it { should validate_presence_of(:name) } end describe 'inclusion validations' do let(:banks) { %w(bradesco itau bancodobrasil banrisul hsbc) } it { should ensure_inclusion_of(:name).in_array(banks) } end end
Version data entries
22 entries across 22 versions & 1 rubygems