test/controllers/extface/devices_controller_test.rb in extface-0.1.0 vs test/controllers/extface/devices_controller_test.rb in extface-0.1.1
- old
+ new
@@ -17,10 +17,10 @@
assert_response :success
end
test "should create device" do
assert_difference('Device.count') do
- post :create, shop_id: @device.extfaceable, use_route: :extface, device: { driver: 'Extface::Driver::RawSerial' }
+ post :create, shop_id: @device.extfaceable, use_route: :extface, device: { driver_class: 'Extface::Driver::GenericPos' }
end
assert_redirected_to device_path(assigns(:device))
end