spec/pagseguro/rake_spec.rb in pagseguro-0.1.3 vs spec/pagseguro/rake_spec.rb in pagseguro-0.1.4
- old
+ new
@@ -118,11 +118,11 @@
params["CliEndereco"].should_not be_blank
params["CliNumero"].should_not be_blank
params["CliComplemento"].should_not be_blank
params["CliBairro"].should_not be_blank
params["CliCidade"].should_not be_blank
- params["CliCEP"].should == "12345678"
- params["CliTelefone"].should == "11 12345678"
+ params["CliCEP"].should match(/\d{5}-\d{3}/)
+ params["CliTelefone"].should match(/\(\d{2}\) \d{4}-\d{4}/)
end
it "should set client e-mail" do
ENV["EMAIL"] = "john@doe.com"
PagSeguro::Rake.run