```ruby
require 'spec_helper'

describe Virtus::Coercion::Integer, '.to_integer' do
  subject { described_class.to_integer(value) }

  let(:value) { mock('value') }

  it { should be(value) }
end

```

Use real integer object in Virtus::Coercion::Integer.to_integer spec
user
```ruby
require 'spec_helper'

describe Virtus::Coercion::Integer, '.to_integer' do
  subject { described_class.to_integer(value) }

  let(:value) { 1 }

  it { should be(value) }
end

```
assistant