summaryrefslogtreecommitdiff
path: root/spec/app_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/app_spec.rb')
-rw-r--r--spec/app_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/app_spec.rb b/spec/app_spec.rb
new file mode 100644
index 0000000..151d690
--- /dev/null
+++ b/spec/app_spec.rb
@@ -0,0 +1,11 @@
+require './spec/spec_helper'
+
+RSpec.describe "App feature spec" do
+ it "renders text" do
+ visit "/"
+ expect(page).to have_content("Lightswitch")
+ expect(page).to have_button("On")
+ click_button "On"
+ expect(page).to have_button("Off")
+ end
+end