Skip to content

Instantly share code, notes, and snippets.

@alex-min
Created June 13, 2017 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alex-min/8c55a1dc441f67d1b3ea8add6ba8f736 to your computer and use it in GitHub Desktop.
Save alex-min/8c55a1dc441f67d1b3ea8add6ba8f736 to your computer and use it in GitHub Desktop.
RSpec.feature 'Post react component test' do
before(:each) do
post_json(render_component_path, {
component: 'Post',
props: { title: title }
}.to_json)
end
context 'with a title' do
let(:title) { 'Hello World' }
expect(find('.title').text).to eq('Hello World')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment