I'm starting the rspec tests in RubyOnRails and I'm having a problem testing my controller's create:
it "creates lançamento" do
post :create, params: attributes_for(:lancamento), format: :js, xhr: true
expect(Lancamento.count).to eq(1)
end...
asked by
11.04.2017 / 16:33