```ruby
require_relative 'spec_helper'

describe 'elasticsearch_lwrp::default' do
  let(:chef_run) { ChefSpec::SoloRunner.new.converge(described_recipe) }
 
  it 'will install elasticsearch' do
    expect(chef_run).to create_elasticsearch('1.4.4')
  end
end
```

Correct resource action to allow ChefSpec to pass
user
```ruby
require_relative 'spec_helper'

describe 'elasticsearch_lwrp::default' do
  let(:chef_run) { ChefSpec::SoloRunner.new.converge(described_recipe) }
  let(:node)     { chef_run.node }

  it 'will install elasticsearch' do
    expect(chef_run).to install_elasticsearch(node.elasticsearch.version)
  end
end
```
assistant